mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/asset/TestAssetPage.java
@Test
    public void testAssetConfigurationImage() throws InterruptedException
    {
        //---verify ExampleAsset images are correct in the configuration section and asset list section---
        AssetHelper.createAsset(m_Driver, "ExampleAsset", "testExampleAsset");
        
        WebElement configDiv = m_Driver.findElement(By.cssSelector("div[id*='assetConfig']"));
        
        WebElement assetConfigImg = configDiv.findElement(By.tagName("img"));
        
        ImageHelper.getPictureOrIconNameAndVerify(assetConfigImg, "magnetic.png", ".png");
       
        WebElement dataList = m_Driver.findElement(By.cssSelector("tbody[id*='dataList_data']"));
        
        assetConfigImg = dataList.findElement(By.tagName("img"));
        ImageHelper.getPictureOrIconNameAndVerify(assetConfigImg, "magnetic.png", ".png");
        
        AssetHelper.removeAsset(m_Driver, "testExampleAsset");
        
        //---verify ExampleObservationsAsset images are correct in the configuration section and asset list section---
        AssetHelper.createAsset(m_Driver, "ExampleObservationsAsset", "testExampleObservationsAsset");
        
        configDiv = m_Driver.findElement(By.cssSelector("div[id*='assetConfig']"));
        
        assetConfigImg = configDiv.findElement(By.tagName("img"));
        ImageHelper.getPictureOrIconNameAndVerify(assetConfigImg, "acoustic.png", ".png");
        
        dataList = m_Driver.findElement(By.cssSelector("tbody[id*='dataList_data']"));
        
        assetConfigImg = dataList.findElement(By.tagName("img"));
        ImageHelper.getPictureOrIconNameAndVerify(assetConfigImg, "acoustic.png", ".png");
        
        AssetHelper.removeAsset(m_Driver, "testExampleObservationsAsset");
    }
/**
     * Verify the correct images shows up for assets on the configuration page.
     */
Verify the correct images shows up for assets on the configuration page.
Verify the correct images shows up for assets on the configuration page .
@Test
    public void testAssetConfigurationImage() throws InterruptedException
    {
        AssetHelper.createAsset(m_Driver, "ExampleAsset", "testExampleAsset");
        WebElement configDiv = m_Driver.findElement(By.cssSelector("div[id*='assetConfig']"));
        WebElement assetConfigImg = configDiv.findElement(By.tagName("img"));
        ImageHelper.getPictureOrIconNameAndVerify(assetConfigImg, "magnetic.png", ".png");
        WebElement dataList = m_Driver.findElement(By.cssSelector("tbody[id*='dataList_data']"));
        assetConfigImg = dataList.findElement(By.tagName("img"));
        ImageHelper.getPictureOrIconNameAndVerify(assetConfigImg, "magnetic.png", ".png");
        AssetHelper.removeAsset(m_Driver, "testExampleAsset");
        AssetHelper.createAsset(m_Driver, "ExampleObservationsAsset", "testExampleObservationsAsset");
        configDiv = m_Driver.findElement(By.cssSelector("div[id*='assetConfig']"));
        assetConfigImg = configDiv.findElement(By.tagName("img"));
        ImageHelper.getPictureOrIconNameAndVerify(assetConfigImg, "acoustic.png", ".png");
        dataList = m_Driver.findElement(By.cssSelector("tbody[id*='dataList_data']"));
        assetConfigImg = dataList.findElement(By.tagName("img"));
        ImageHelper.getPictureOrIconNameAndVerify(assetConfigImg, "acoustic.png", ".png");
        AssetHelper.removeAsset(m_Driver, "testExampleObservationsAsset");
    }
@ Test public void testAssetConfigurationImage ( ) throws InterruptedException { AssetHelper . createAsset ( m_Driver , "ExampleAsset" , "testExampleAsset" ) ; WebElement configDiv = m_Driver . findElement ( By . cssSelector ( "div[id*='assetConfig']" ) ) ; WebElement assetConfigImg = configDiv . findElement ( By . tagName ( "img" ) ) ; ImageHelper . getPictureOrIconNameAndVerify ( assetConfigImg , "magnetic.png" , ".png" ) ; WebElement dataList = m_Driver . findElement ( By . cssSelector ( "tbody[id*='dataList_data']" ) ) ; assetConfigImg = dataList . findElement ( By . tagName ( "img" ) ) ; ImageHelper . getPictureOrIconNameAndVerify ( assetConfigImg , "magnetic.png" , ".png" ) ; AssetHelper . removeAsset ( m_Driver , "testExampleAsset" ) ; AssetHelper . createAsset ( m_Driver , "ExampleObservationsAsset" , "testExampleObservationsAsset" ) ; configDiv = m_Driver . findElement ( By . cssSelector ( "div[id*='assetConfig']" ) ) ; assetConfigImg = configDiv . findElement ( By . tagName ( "img" ) ) ; ImageHelper . getPictureOrIconNameAndVerify ( assetConfigImg , "acoustic.png" , ".png" ) ; dataList = m_Driver . findElement ( By . cssSelector ( "tbody[id*='dataList_data']" ) ) ; assetConfigImg = dataList . findElement ( By . tagName ( "img" ) ) ; ImageHelper . getPictureOrIconNameAndVerify ( assetConfigImg , "acoustic.png" , ".png" ) ; AssetHelper . removeAsset ( m_Driver , "testExampleObservationsAsset" ) ; }
Verify the correct images shows up for assets on the configuration page.
Verify the correct images shows up for assets on the configuration page .
//---verify ExampleAsset images are correct in the configuration section and asset list section--- //---verify ExampleObservationsAsset images are correct in the configuration section and asset list section---