...
In general there are 3 ways to add an alias for an interpreter:
Programmatically (on runtime)
Code Block | ||
---|---|---|
| ||
GreenPepper.aliasInterpreter("Scenario", ScenarioInterpreter.class); GreenPepper.aliasInterpreter("My szenario", ScenarioInterpreter.class); GreenPepper.aliasInterpreter("My szenario", "com.greenpepper.interpreter.ScenarioInterpreter"); GreenPepper.aliasInterpreter("My wesome scenario!", "com.greenpepper.interpreter.AClass$AInnerClass"); |
Edit the default aliases.properties file
This aliases.properties property file is located in the jar of greenpepper core. Using the sources this file can be found under src/main/resourecs/aliases.properties.
Provide an aliases.properties file
You can place a file named "aliases.properties" next to your greenpepper jar. By default the internal jar properties file is used as fallback.
...