[arquillian-issues] [JBoss JIRA] (ARQAJO-100) Allow user to fail tests with AssertionError() with wait* objects

Karel Piwko (Created) (JIRA) jira-events at lists.jboss.org
Wed Nov 23 09:39:40 EST 2011


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.0.0.CR2
            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