use of com.seleniumtests.core.TestVariable in project seleniumRobot by bhecquet.
the class TestStringUtility method testInterpolateString2.
@Test(groups = { "ut" })
public void testInterpolateString2() {
SeleniumTestsContextManager.getThreadContext().getConfiguration().put("url", new TestVariable("url", "http://mysite"));
Assert.assertEquals(StringUtility.interpolateString("connect to ${url} ${url2} correctly", SeleniumTestsContextManager.getThreadContext()), "connect to http://mysite ${url2} correctly");
}
use of com.seleniumtests.core.TestVariable in project seleniumRobot by bhecquet.
the class TestStringUtility method testInterpolateStringMaskPassword2.
@Test(groups = { "ut" })
public void testInterpolateStringMaskPassword2() {
SeleniumTestsContextManager.getThreadContext().setMaskPassword(true);
SeleniumTestsContextManager.getThreadContext().getConfiguration().put("passwd", new TestVariable("passwd", "abc"));
Assert.assertEquals(StringUtility.interpolateString("connect with ${passwd}", SeleniumTestsContextManager.getThreadContext()), "connect with ****");
}
Aggregations