1 of 1 people found this helpful
Bela Ban wrote:
I have a problem using targetLocation() in @BMRule on a TestNG test.
The same rule in a script file works.
The test method is:
targetLocation="AT READ name",
action="System.out.println(\"hello before returning\");")
// @BMScript(value="bela", dir="target/test-classes"). . .
This is a known problem. With the current releases of BMUnit the AT is added by the annotation processor so you need to write
. . .
. . .
When 2.0.0 is released you will be able to write "AT READ name. Also, you will also be able to write AFTER locations like "AFTER READ name".