mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/comms/TestCommsPage.java
@Test
    public void testStackBITStatusChanged() throws InterruptedException, ExecutionException, TimeoutException
    {        
        String physName = CommsGeneralHelper.getAvailablePhysicalLink(m_Driver);
        
        CommsGeneralHelper.createStack(m_Driver,  physName, "linkyLink", 
                "example.ccomms.ExampleLinkLayer", null, null);
        
        //---verify status is lost---
        WebElement commsStack = CommsGeneralHelper.retrieveStack(m_Driver, "linkyLink");
        assertThat(commsStack, notNullValue());
        
        WebElement commStatus = commsStack.findElement(By.cssSelector("span[id$='commStatusText']"));
        assertThat(commStatus.getText(), is("Status: LOST"));
        
        //---perform BIT---
        WebElement performBitButton = commsStack.findElement(By.cssSelector("button[id*='bitButton']"));
        
        GrowlVerifier.verifyAndWaitToDisappear(20, performBitButton, "Link Status Changed");
        
        //---verify status changed to GOOD---
        commsStack = null;
        commsStack = CommsGeneralHelper.retrieveStack(m_Driver, "linkyLink");
        assertThat(commsStack, notNullValue());
        WebElement isStatusOk = commsStack.findElement(By.cssSelector("span[id$='commStatusText']"));
        
        assertThat(isStatusOk.getText(), is("Status: OK"));
        
        CommsGeneralHelper.removeStack(m_Driver, "linkyLink");
    }
/**
     * Verify the stack's BIT can be run and the status updates appropriately.
     */
Verify the stack's BIT can be run and the status updates appropriately.
Verify the stack ' s BIT can be run and the status updates appropriately .
@Test
    public void testStackBITStatusChanged() throws InterruptedException, ExecutionException, TimeoutException
    {        
        String physName = CommsGeneralHelper.getAvailablePhysicalLink(m_Driver);
        CommsGeneralHelper.createStack(m_Driver,  physName, "linkyLink", 
                "example.ccomms.ExampleLinkLayer", null, null);
        WebElement commsStack = CommsGeneralHelper.retrieveStack(m_Driver, "linkyLink");
        assertThat(commsStack, notNullValue());
        WebElement commStatus = commsStack.findElement(By.cssSelector("span[id$='commStatusText']"));
        assertThat(commStatus.getText(), is("Status: LOST"));
        WebElement performBitButton = commsStack.findElement(By.cssSelector("button[id*='bitButton']"));
        GrowlVerifier.verifyAndWaitToDisappear(20, performBitButton, "Link Status Changed");
        commsStack = null;
        commsStack = CommsGeneralHelper.retrieveStack(m_Driver, "linkyLink");
        assertThat(commsStack, notNullValue());
        WebElement isStatusOk = commsStack.findElement(By.cssSelector("span[id$='commStatusText']"));
        assertThat(isStatusOk.getText(), is("Status: OK"));
        CommsGeneralHelper.removeStack(m_Driver, "linkyLink");
    }
@ Test public void testStackBITStatusChanged ( ) throws InterruptedException , ExecutionException , TimeoutException { String physName = CommsGeneralHelper . getAvailablePhysicalLink ( m_Driver ) ; CommsGeneralHelper . createStack ( m_Driver , physName , "linkyLink" , "example.ccomms.ExampleLinkLayer" , null , null ) ; WebElement commsStack = CommsGeneralHelper . retrieveStack ( m_Driver , "linkyLink" ) ; assertThat ( commsStack , notNullValue ( ) ) ; WebElement commStatus = commsStack . findElement ( By . cssSelector ( "span[id$='commStatusText']" ) ) ; assertThat ( commStatus . getText ( ) , is ( "Status: LOST" ) ) ; WebElement performBitButton = commsStack . findElement ( By . cssSelector ( "button[id*='bitButton']" ) ) ; GrowlVerifier . verifyAndWaitToDisappear ( 20 , performBitButton , "Link Status Changed" ) ; commsStack = null ; commsStack = CommsGeneralHelper . retrieveStack ( m_Driver , "linkyLink" ) ; assertThat ( commsStack , notNullValue ( ) ) ; WebElement isStatusOk = commsStack . findElement ( By . cssSelector ( "span[id$='commStatusText']" ) ) ; assertThat ( isStatusOk . getText ( ) , is ( "Status: OK" ) ) ; CommsGeneralHelper . removeStack ( m_Driver , "linkyLink" ) ; }
Verify the stack's BIT can be run and the status updates appropriately.
Verify the stack ' s BIT can be run and the status updates appropriately .
//---verify status is lost--- //---perform BIT--- //---verify status changed to GOOD---