java - Cucumber get name of test runner class -
i'm trying name of current executing runner class, e.g. for:
@runwith(cucumber.class) @cucumberoptions( features={"features"}, glue={"src.stepdefinition"}, monochrome=false ) public class helloworld { }
i need have class name "helloworld" available in java code. know how it? i've tried this: http://ramblingsofaswtester.com/2013/04/15/cucumber-test-name-and-tags-on-feature/ , definitly goes right direction, doesn't contains runner class name.
edit: because use maven can access
system.getproperty("test")
which contains package name class name.
Comments
Post a Comment