use of com.seleniumtests.connectors.extools.Uft in project seleniumRobot by bhecquet.
the class TestUft method testPrepareLoadArgumentsWithAlmTestMissingUserValues.
@Test(groups = { "ut" }, expectedExceptions = ConfigurationException.class)
public void testPrepareLoadArgumentsWithAlmTestMissingUserValues() {
Uft uft = new Uft("http://almserver/qcbin", null, "pwd", "dom", "proj", "[QualityCenter]Subject\\Tools\\Tests\\test1");
uft.setKillUftOnStartup(false);
uft.prepareArguments(true, false);
}
use of com.seleniumtests.connectors.extools.Uft in project seleniumRobot by bhecquet.
the class TestUft method testPrepareArgumentsForGrid.
/**
* Check that in grid mode, we load the file to grid node
*/
@Test(groups = { "ut" })
public void testPrepareArgumentsForGrid() {
SeleniumTestsContextManager.getThreadContext().setSeleniumGridConnector(connector);
SeleniumTestsContextManager.getThreadContext().setRunMode("grid");
when(connector.uploadFileToNode(anyString(), eq(true))).thenReturn("D:\\file");
Uft uft = new Uft("D:\\Subject\\Tools\\Tests\\test1");
uft.setKillUftOnStartup(false);
List<String> args = uft.prepareArguments(true, true);
Assert.assertEquals(args.size(), 4);
Assert.assertTrue(args.get(0).equals("D:\\file\\uft.vbs"));
Assert.assertTrue(args.get(1).equals("D:\\Subject\\Tools\\Tests\\test1"));
Assert.assertTrue(args.get(2).equals("/execute"));
Assert.assertTrue(args.get(3).equals("/load"));
}
Aggregations