mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/base/TestControllerSideBar.java
@Test
    public void testMulitipleControllers() throws Exception
    {
        WebDriverWait wait = new WebDriverWait(m_Driver, 15);
        
        ControllerHelper.ensureTwoControllers(m_Driver);
        
        //verify that both controllers are in the sidebar
        assertThat(m_Driver.findElements(By.cssSelector("table[class='controller']")).size(), is(2));
        
        //---verify correct information is given for the controllers---
        WebElement defltGui = ControllerHelper.getControllerListElement(m_Driver, ControllerHelper.DEFAULT_GUI_NAME);
        assertThat("Controller with name " + ControllerHelper.DEFAULT_GUI_NAME + " could not be found.", 
                defltGui, is(notNullValue()));
        wait.until(ExpectedConditions.presenceOfElementLocated(
            By.cssSelector("span[class='controllerObsCnt']")));
        WebElement controllerObsQueued = defltGui.findElement(By.cssSelector("span[class='controllerObsCnt']"));
        
        //verify that the obs count is displayed initially as zero
        assertThat(controllerObsQueued.getText().contains("0"), is(true));
        
        //---get the other controller and test the information---
        WebElement defltCont = ControllerHelper.getControllerListElement(m_Driver, 
            ControllerHelper.DEFAULT_CONTROLLER_NAME);
        assertThat("Controller with name " + ControllerHelper.DEFAULT_CONTROLLER_NAME + " could not be found.", 
                defltCont, is(notNullValue()));
        wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector("span[class='controllerObsCnt']")));
        controllerObsQueued = defltCont.findElement(By.cssSelector("span[class='controllerObsCnt']"));

        //verify that the obs count is displayed initially as zero
        assertThat(controllerObsQueued.getText().contains("0"), is(true));
    }
/**
     * Verify multiple controllers show up correctly in the controller sidebar.
     */
Verify multiple controllers show up correctly in the controller sidebar.
Verify multiple controllers show up correctly in the controller sidebar .
@Test
    public void testMulitipleControllers() throws Exception
    {
        WebDriverWait wait = new WebDriverWait(m_Driver, 15);
        ControllerHelper.ensureTwoControllers(m_Driver);
        assertThat(m_Driver.findElements(By.cssSelector("table[class='controller']")).size(), is(2));
        WebElement defltGui = ControllerHelper.getControllerListElement(m_Driver, ControllerHelper.DEFAULT_GUI_NAME);
        assertThat("Controller with name " + ControllerHelper.DEFAULT_GUI_NAME + " could not be found.", 
                defltGui, is(notNullValue()));
        wait.until(ExpectedConditions.presenceOfElementLocated(
            By.cssSelector("span[class='controllerObsCnt']")));
        WebElement controllerObsQueued = defltGui.findElement(By.cssSelector("span[class='controllerObsCnt']"));
        assertThat(controllerObsQueued.getText().contains("0"), is(true));
        WebElement defltCont = ControllerHelper.getControllerListElement(m_Driver, 
            ControllerHelper.DEFAULT_CONTROLLER_NAME);
        assertThat("Controller with name " + ControllerHelper.DEFAULT_CONTROLLER_NAME + " could not be found.", 
                defltCont, is(notNullValue()));
        wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector("span[class='controllerObsCnt']")));
        controllerObsQueued = defltCont.findElement(By.cssSelector("span[class='controllerObsCnt']"));
        assertThat(controllerObsQueued.getText().contains("0"), is(true));
    }
@ Test public void testMulitipleControllers ( ) throws Exception { WebDriverWait wait = new WebDriverWait ( m_Driver , 15 ) ; ControllerHelper . ensureTwoControllers ( m_Driver ) ; assertThat ( m_Driver . findElements ( By . cssSelector ( "table[class='controller']" ) ) . size ( ) , is ( 2 ) ) ; WebElement defltGui = ControllerHelper . getControllerListElement ( m_Driver , ControllerHelper . DEFAULT_GUI_NAME ) ; assertThat ( "Controller with name " + ControllerHelper . DEFAULT_GUI_NAME + " could not be found." , defltGui , is ( notNullValue ( ) ) ) ; wait . until ( ExpectedConditions . presenceOfElementLocated ( By . cssSelector ( "span[class='controllerObsCnt']" ) ) ) ; WebElement controllerObsQueued = defltGui . findElement ( By . cssSelector ( "span[class='controllerObsCnt']" ) ) ; assertThat ( controllerObsQueued . getText ( ) . contains ( "0" ) , is ( true ) ) ; WebElement defltCont = ControllerHelper . getControllerListElement ( m_Driver , ControllerHelper . DEFAULT_CONTROLLER_NAME ) ; assertThat ( "Controller with name " + ControllerHelper . DEFAULT_CONTROLLER_NAME + " could not be found." , defltCont , is ( notNullValue ( ) ) ) ; wait . until ( ExpectedConditions . presenceOfElementLocated ( By . cssSelector ( "span[class='controllerObsCnt']" ) ) ) ; controllerObsQueued = defltCont . findElement ( By . cssSelector ( "span[class='controllerObsCnt']" ) ) ; assertThat ( controllerObsQueued . getText ( ) . contains ( "0" ) , is ( true ) ) ; }
Verify multiple controllers show up correctly in the controller sidebar.
Verify multiple controllers show up correctly in the controller sidebar .
//verify that both controllers are in the sidebar //---verify correct information is given for the controllers--- //verify that the obs count is displayed initially as zero //---get the other controller and test the information--- //verify that the obs count is displayed initially as zero