Closed GoogleCodeExporter closed 8 years ago
I cannot get why you need a rule for this. You have the params' values in the
test itself... Or are you taking the snapshot from outside of the test?
In general - yes, you can. This rule will print out all params:
public static class TestParams implements TestRule {
@Override
public Statement apply(Statement base, Description description) {
System.out.println(((InvokeParameterisedMethod) base).getParamsAsString());
return base;
}
}
Original comment by lipinski...@gmail.com
on 10 Feb 2012 at 10:53
Creating the screenshots is done with a JUnit Rule, so i do not have access to
the testcase. And thanks for your hint, i will try it.
Original comment by andreas....@gmail.com
on 10 Feb 2012 at 11:04
Original issue reported on code.google.com by
andreas....@gmail.com
on 31 Jan 2012 at 8:41