public void fail(String check, double waitFor, String actual, double timeTook) {
        fails++;
        recordStep(getAction(check, waitFor), "Expected " + check, getActual(actual, timeTook), true, Success.FAIL);
    }
public void fail ( String check , double waitFor , String actual , double timeTook ) { fails ++ ; recordStep ( getAction ( check , waitFor ) , "Expected " + check , getActual ( actual , timeTook ) , true , Success . FAIL ) ; }
Records the performed check as a fail to the output file. A screenshot will be taken for traceability
This method takes in a check being performed, and determines if a wait is
occurring or not. If no wait, no action is recorded. If a wait was performed, that wait is
added to the check, and recorded as the action. The check is used as the expected outcome, and the actual
input is used for actual. If it took some time (timeTook greater than zero), than the actual result will
be updated to reflect the time took.
If a 'real' browser is not being used (not NONE or HTMLUNIT), then no screenshot will be taken

@param check    - the check being performed
@param waitFor  - how long was something waited for. Provide 0 if no wait, and therefore no action
@param actual   - the actual outcome from the check
@param timeTook - how long something took to run, provide 0 if it was an immediate check, and actual
will be returned unaltered