Steps could benefit from a pre-requisite check
----------------------------------------------

                 Key: JBEHAVE-526
                 URL: http://jira.codehaus.org/browse/JBEHAVE-526
             Project: JBehave
          Issue Type: New Feature
          Components: Core
            Reporter: Paul Hammant


An Example:

PreRequisiteHandler prh = new PreRequisiteHandler() {
public void preRequisiteCheck(Object instance, Method method) {
String url = webDriverProvider.get().getCurrentUrl();
String urlPart = getUrlPartFromAnnotationOnMethod(method));
assertThat(url, contains(urlPart));
}};

configuration.usePreRequisiteHandler(prh);

WebDriver assumed page checking, before invoking a step, is one use of a 
pre-requisite.  Ultimately this is a jb-core enhancement, and a jb-web-selenium 
specialization.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to