Let's say I have some guice module/provider which supposed to create bindings based on parameters received from TestNg suite file. e.g.
<test name="Test">
<parameter name="profile" value="chrome"></parameter>
<classes>
<class name="com.apc.ui.tests.TestClass">
</class>
</classes>
</test>
What I wanted to achieve is a possibility to access parameter value from withing above mentioned module. e.g.
public class MyModule extends AbstractModule {
@Inject
ITestContext context;
@Override
protected void configure() {
...
}
}
So, I'm wondering whether it's possible. Any alternatives are also really welcomed. Thanks.