[arquillian-issues] [JBoss JIRA] (ARQAJO-100) Allow user to fail tests with AssertionError() with wait* objects
Karel Piwko (Commented) (JIRA)
jira-events at lists.jboss.org
Thu Nov 24 07:29:40 EST 2011
[ https://issues.jboss.org/browse/ARQAJO-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645370#comment-12645370 ]
Karel Piwko commented on ARQAJO-100:
------------------------------------
Not only, we also have to disable autowrapping of Thowable by a RuntimeException.
> Allow user to fail tests with AssertionError() with wait* objects
> -----------------------------------------------------------------
>
> Key: ARQAJO-100
> URL: https://issues.jboss.org/browse/ARQAJO-100
> Project: Arquillian Ajocado
> Issue Type: Feature Request
> Components: core
> Affects Versions: 1.1.0.Tracking
> Reporter: Karel Piwko
> Assignee: Lukáš Fryč
>
> Expecting user want to fail (e.g. marking as failure instead of error) his test if some element is not present:
> {code}
> waitModel.failWith(new AssertionError("Invalid message not present")).until(elementPresent.locator(REG_INVALID));
> {code}
> This is not possible. User has do to it following way.
> {code}
> waitModel.dontFail().until(elementPresent.locator(REG_INVALID));
> Assert.assertTrue("Invalid message not present", selenium.isElementPresent(REG_INVALID));
> {code}
> This is either an usability problem or a complete misunderstood of the usage by myself.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list