Esempio n. 1
0
  @Before
  public void before() throws DriverException {
    prop = TafTestUtil.loadProps(TafTestUtil.propFilePath);

    TafTestUtil.initialize();

    String[] currentTestbeds =
        TestBedManagerConfiguration.INSTANCE.getWebConfig().getCurrentTestBeds();
    // TestBed currentTestbed = TafTestUtil.loadTestBedDetails(currentTestbeds[0]);
    String currentTestbedName = currentTestbeds[0];
    // TestBedManager.INSTANCE.setCurrentTestBed(currentTestbed);
    TestBedManager.INSTANCE.getCurrentTestBeds().get(currentTestbedName);

    driverObj = TestUtil.createDriver(true);
    Mockito.when(mockContext.getCurrentXmlTest().getAllParameters().get("testBedName"))
        .thenReturn("Chrome");

    webpage = new WebPage(mockContext);
    webpage.loadPage("http://www.amazon.com");
  }
Esempio n. 2
0
 @After
 public void tearDown() {
   TestUtil.closeDriver(driverObj);
 }