mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/comms/TestCommsPage.java
@Test
    public void testCommsImages() throws InterruptedException, ExecutionException, TimeoutException
    {
        WebElement commsStack1 = CommsGeneralHelper.retrieveStack(m_Driver, "/dev/serialExample1");
        assertThat(commsStack1, notNullValue());
        WebElement commImage1 = commsStack1.findElement(By.tagName("img"));
        
        ImageHelper.getPictureOrIconNameAndVerify(commImage1, "comms_serial.png", ".png");
        
        WebElement commsStack2 = CommsGeneralHelper.retrieveStack(m_Driver, "/dev/serialExample2");
        assertThat(commsStack2, notNullValue());
        WebElement commImage2 = commsStack2.findElement(By.tagName("img"));
        ImageHelper.getPictureOrIconNameAndVerify(commImage2, "comms_serial.png", ".png");
       
        String physName = CommsGeneralHelper.getAvailablePhysicalLink(m_Driver);
        
        CommsGeneralHelper.createStack(m_Driver,  physName, "linkyLink", 
                "example.ccomms.ExampleLinkLayer", null, null);
        
        WebElement linkyLinkTable = CommsGeneralHelper.retrieveStack(m_Driver, "linkyLink");
        assertThat(linkyLinkTable, notNullValue());
        WebElement linkyImage = linkyLinkTable.findElement(By.tagName("img"));
        
        ImageHelper.getPictureOrIconNameAndVerify(linkyImage, "comms_line_of_sight.png", ".png");
       
        CommsGeneralHelper.removeStack(m_Driver, "linkyLink");
        
        String transportPhyName = CommsGeneralHelper.getAvailablePhysicalLink(m_Driver);
        
        CommsGeneralHelper.createStack(m_Driver, transportPhyName, "linkylink", 
                "example.ccomms.ExampleLinkLayer", "transport1", "example.ccomms.DirectTransport");
        
        WebElement transportTable = CommsGeneralHelper.retrieveStack(m_Driver, "transport1");
        WebElement transportImage = transportTable.findElement(By.tagName("img"));
        
        ImageHelper.getPictureOrIconNameAndVerify(transportImage, "comms_line_of_sight.png", ".png");
        
        CommsGeneralHelper.removeStack(m_Driver, "transport1");
    }
/**
     * Verify images on the comms tab of the assets page are correct.
     */
Verify images on the comms tab of the assets page are correct.
Verify images on the comms tab of the assets page are correct .
@Test
    public void testCommsImages() throws InterruptedException, ExecutionException, TimeoutException
    {
        WebElement commsStack1 = CommsGeneralHelper.retrieveStack(m_Driver, "/dev/serialExample1");
        assertThat(commsStack1, notNullValue());
        WebElement commImage1 = commsStack1.findElement(By.tagName("img"));
        ImageHelper.getPictureOrIconNameAndVerify(commImage1, "comms_serial.png", ".png");
        WebElement commsStack2 = CommsGeneralHelper.retrieveStack(m_Driver, "/dev/serialExample2");
        assertThat(commsStack2, notNullValue());
        WebElement commImage2 = commsStack2.findElement(By.tagName("img"));
        ImageHelper.getPictureOrIconNameAndVerify(commImage2, "comms_serial.png", ".png");
        String physName = CommsGeneralHelper.getAvailablePhysicalLink(m_Driver);
        CommsGeneralHelper.createStack(m_Driver,  physName, "linkyLink", 
                "example.ccomms.ExampleLinkLayer", null, null);
        WebElement linkyLinkTable = CommsGeneralHelper.retrieveStack(m_Driver, "linkyLink");
        assertThat(linkyLinkTable, notNullValue());
        WebElement linkyImage = linkyLinkTable.findElement(By.tagName("img"));
        ImageHelper.getPictureOrIconNameAndVerify(linkyImage, "comms_line_of_sight.png", ".png");
        CommsGeneralHelper.removeStack(m_Driver, "linkyLink");
        String transportPhyName = CommsGeneralHelper.getAvailablePhysicalLink(m_Driver);
        CommsGeneralHelper.createStack(m_Driver, transportPhyName, "linkylink", 
                "example.ccomms.ExampleLinkLayer", "transport1", "example.ccomms.DirectTransport");
        WebElement transportTable = CommsGeneralHelper.retrieveStack(m_Driver, "transport1");
        WebElement transportImage = transportTable.findElement(By.tagName("img"));
        ImageHelper.getPictureOrIconNameAndVerify(transportImage, "comms_line_of_sight.png", ".png");
        CommsGeneralHelper.removeStack(m_Driver, "transport1");
    }
@ Test public void testCommsImages ( ) throws InterruptedException , ExecutionException , TimeoutException { WebElement commsStack1 = CommsGeneralHelper . retrieveStack ( m_Driver , "/dev/serialExample1" ) ; assertThat ( commsStack1 , notNullValue ( ) ) ; WebElement commImage1 = commsStack1 . findElement ( By . tagName ( "img" ) ) ; ImageHelper . getPictureOrIconNameAndVerify ( commImage1 , "comms_serial.png" , ".png" ) ; WebElement commsStack2 = CommsGeneralHelper . retrieveStack ( m_Driver , "/dev/serialExample2" ) ; assertThat ( commsStack2 , notNullValue ( ) ) ; WebElement commImage2 = commsStack2 . findElement ( By . tagName ( "img" ) ) ; ImageHelper . getPictureOrIconNameAndVerify ( commImage2 , "comms_serial.png" , ".png" ) ; String physName = CommsGeneralHelper . getAvailablePhysicalLink ( m_Driver ) ; CommsGeneralHelper . createStack ( m_Driver , physName , "linkyLink" , "example.ccomms.ExampleLinkLayer" , null , null ) ; WebElement linkyLinkTable = CommsGeneralHelper . retrieveStack ( m_Driver , "linkyLink" ) ; assertThat ( linkyLinkTable , notNullValue ( ) ) ; WebElement linkyImage = linkyLinkTable . findElement ( By . tagName ( "img" ) ) ; ImageHelper . getPictureOrIconNameAndVerify ( linkyImage , "comms_line_of_sight.png" , ".png" ) ; CommsGeneralHelper . removeStack ( m_Driver , "linkyLink" ) ; String transportPhyName = CommsGeneralHelper . getAvailablePhysicalLink ( m_Driver ) ; CommsGeneralHelper . createStack ( m_Driver , transportPhyName , "linkylink" , "example.ccomms.ExampleLinkLayer" , "transport1" , "example.ccomms.DirectTransport" ) ; WebElement transportTable = CommsGeneralHelper . retrieveStack ( m_Driver , "transport1" ) ; WebElement transportImage = transportTable . findElement ( By . tagName ( "img" ) ) ; ImageHelper . getPictureOrIconNameAndVerify ( transportImage , "comms_line_of_sight.png" , ".png" ) ; CommsGeneralHelper . removeStack ( m_Driver , "transport1" ) ; }
Verify images on the comms tab of the assets page are correct.
Verify images on the comms tab of the assets page are correct .