mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/comms/TestAddCommsDlg.java
@Test
    public void testCreateStack() throws InterruptedException, ExecutionException, TimeoutException
    {
        NavigationHelper.pageAndTabCheck(m_Driver, NavigationButtonNameConstants.NAVBUT_PROP_COMMS, null);
        String physName = CommsGeneralHelper.getAvailablePhysicalLink(m_Driver);

        // create stack containing transport
        CommsGeneralHelper.createStack(m_Driver, physName, "duck", "example.ccomms.ExampleLinkLayer", "goose",
                "example.ccomms.DirectTransport");

        // wait for elements to appear before 'grabbing' them
        wait.until(ExpectedConditions.visibilityOf(CommsGeneralHelper.retrieveStack(m_Driver, "goose")));

        WebElement table = CommsGeneralHelper.retrieveStack(m_Driver, "goose");
        List<WebElement> commsTableElements = table.findElements(By.cssSelector("tbody>tr+tr>td+td>table>tbody>tr"));

        // verify
        assertThat(commsTableElements.size(), is(3));
        assertThat(commsTableElements.get(0).getText(), containsString("goose"));
        assertThat(commsTableElements.get(1).getText(), containsString("duck"));
        assertThat(commsTableElements.get(2).getText(), containsString(physName));

        CommsGeneralHelper.removeStack(m_Driver, "goose");
    }
/**
     * Assuming default controller is the active controller, assuming example platform and example good plugin bundles
     * are in the controller. Verify stack is created and layers are displayed on GUI.
     */
Assuming default controller is the active controller, assuming example platform and example good plugin bundles
are in the controller. Verify stack is created and layers are displayed on GUI.
Assuming default controller is the active controller assuming example platform and example good plugin bundles are in the controller . Verify stack is created and layers are displayed on GUI .
@Test
    public void testCreateStack() throws InterruptedException, ExecutionException, TimeoutException
    {
        NavigationHelper.pageAndTabCheck(m_Driver, NavigationButtonNameConstants.NAVBUT_PROP_COMMS, null);
        String physName = CommsGeneralHelper.getAvailablePhysicalLink(m_Driver);
        CommsGeneralHelper.createStack(m_Driver, physName, "duck", "example.ccomms.ExampleLinkLayer", "goose",
                "example.ccomms.DirectTransport");
        wait.until(ExpectedConditions.visibilityOf(CommsGeneralHelper.retrieveStack(m_Driver, "goose")));
        WebElement table = CommsGeneralHelper.retrieveStack(m_Driver, "goose");
        List<WebElement> commsTableElements = table.findElements(By.cssSelector("tbody>tr+tr>td+td>table>tbody>tr"));
        assertThat(commsTableElements.size(), is(3));
        assertThat(commsTableElements.get(0).getText(), containsString("goose"));
        assertThat(commsTableElements.get(1).getText(), containsString("duck"));
        assertThat(commsTableElements.get(2).getText(), containsString(physName));
        CommsGeneralHelper.removeStack(m_Driver, "goose");
    }
@ Test public void testCreateStack ( ) throws InterruptedException , ExecutionException , TimeoutException { NavigationHelper . pageAndTabCheck ( m_Driver , NavigationButtonNameConstants . NAVBUT_PROP_COMMS , null ) ; String physName = CommsGeneralHelper . getAvailablePhysicalLink ( m_Driver ) ; CommsGeneralHelper . createStack ( m_Driver , physName , "duck" , "example.ccomms.ExampleLinkLayer" , "goose" , "example.ccomms.DirectTransport" ) ; wait . until ( ExpectedConditions . visibilityOf ( CommsGeneralHelper . retrieveStack ( m_Driver , "goose" ) ) ) ; WebElement table = CommsGeneralHelper . retrieveStack ( m_Driver , "goose" ) ; List < WebElement > commsTableElements = table . findElements ( By . cssSelector ( "tbody>tr+tr>td+td>table>tbody>tr" ) ) ; assertThat ( commsTableElements . size ( ) , is ( 3 ) ) ; assertThat ( commsTableElements . get ( 0 ) . getText ( ) , containsString ( "goose" ) ) ; assertThat ( commsTableElements . get ( 1 ) . getText ( ) , containsString ( "duck" ) ) ; assertThat ( commsTableElements . get ( 2 ) . getText ( ) , containsString ( physName ) ) ; CommsGeneralHelper . removeStack ( m_Driver , "goose" ) ; }
Assuming default controller is the active controller, assuming example platform and example good plugin bundles
 are in the controller.
Assuming default controller is the active controller assuming example platform and example good plugin bundles are in the controller .
// create stack containing transport // wait for elements to appear before 'grabbing' them // verify