mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/asset/TestAssetCommands.java
@Test
    public void testCaptureImageCommand() throws InterruptedException, ExecutionException, TimeoutException
    {
        Map<String, String> params = new HashMap<>();
        params.put("camera", AssetCommandHelper.ADD);
        params.put("camera.id", "12");
        params.put("camera.type", "IR");
        params.put("areaOfInterest", AssetCommandHelper.ADD);
        params.put("areaOfInterest.top", "1.0");
        params.put("areaOfInterest.right", "1.0");
        params.put("burst", AssetCommandHelper.ADD);
        params.put("burst.burstNumber", "3");
        params.put("burst.burstIntervalInMS","100");
        params.put("imageCompression", AssetCommandHelper.ADD);
        params.put("imageCompression.ratio", "20");
        params.put("pictureType", "AREA_OF_INTEREST");
        
        AssetCommandHelper.inputAllParameters(m_Driver, ASSET_NAME, "Capture Image", params);
        
        WebElement sendCommandButton = AssetCommandHelper.findCorrectSendButton(m_Driver, ASSET_NAME, 
                "Send Command", "sendCommand");
        assertThat(sendCommandButton, notNullValue());
        
        GrowlVerifier.verifyAndWaitToDisappear(20, sendCommandButton, COMMAND_MSG_TITLE);
        
        AssetCommandHelper.clickAccordionPanel(m_Driver, ASSET_NAME, "Capture Image", ExpandCollapse.COLLAPSE);
    }
/*
     * Verify capture image command works as intended.
     */
Verify capture image command works as intended.
Verify capture image command works as intended .
@Test
    public void testCaptureImageCommand() throws InterruptedException, ExecutionException, TimeoutException
    {
        Map<String, String> params = new HashMap<>();
        params.put("camera", AssetCommandHelper.ADD);
        params.put("camera.id", "12");
        params.put("camera.type", "IR");
        params.put("areaOfInterest", AssetCommandHelper.ADD);
        params.put("areaOfInterest.top", "1.0");
        params.put("areaOfInterest.right", "1.0");
        params.put("burst", AssetCommandHelper.ADD);
        params.put("burst.burstNumber", "3");
        params.put("burst.burstIntervalInMS","100");
        params.put("imageCompression", AssetCommandHelper.ADD);
        params.put("imageCompression.ratio", "20");
        params.put("pictureType", "AREA_OF_INTEREST");
        AssetCommandHelper.inputAllParameters(m_Driver, ASSET_NAME, "Capture Image", params);
        WebElement sendCommandButton = AssetCommandHelper.findCorrectSendButton(m_Driver, ASSET_NAME, 
                "Send Command", "sendCommand");
        assertThat(sendCommandButton, notNullValue());
        GrowlVerifier.verifyAndWaitToDisappear(20, sendCommandButton, COMMAND_MSG_TITLE);
        AssetCommandHelper.clickAccordionPanel(m_Driver, ASSET_NAME, "Capture Image", ExpandCollapse.COLLAPSE);
    }
@ Test public void testCaptureImageCommand ( ) throws InterruptedException , ExecutionException , TimeoutException { Map < String , String > params = new HashMap < > ( ) ; params . put ( "camera" , AssetCommandHelper . ADD ) ; params . put ( "camera.id" , "12" ) ; params . put ( "camera.type" , "IR" ) ; params . put ( "areaOfInterest" , AssetCommandHelper . ADD ) ; params . put ( "areaOfInterest.top" , "1.0" ) ; params . put ( "areaOfInterest.right" , "1.0" ) ; params . put ( "burst" , AssetCommandHelper . ADD ) ; params . put ( "burst.burstNumber" , "3" ) ; params . put ( "burst.burstIntervalInMS" , "100" ) ; params . put ( "imageCompression" , AssetCommandHelper . ADD ) ; params . put ( "imageCompression.ratio" , "20" ) ; params . put ( "pictureType" , "AREA_OF_INTEREST" ) ; AssetCommandHelper . inputAllParameters ( m_Driver , ASSET_NAME , "Capture Image" , params ) ; WebElement sendCommandButton = AssetCommandHelper . findCorrectSendButton ( m_Driver , ASSET_NAME , "Send Command" , "sendCommand" ) ; assertThat ( sendCommandButton , notNullValue ( ) ) ; GrowlVerifier . verifyAndWaitToDisappear ( 20 , sendCommandButton , COMMAND_MSG_TITLE ) ; AssetCommandHelper . clickAccordionPanel ( m_Driver , ASSET_NAME , "Capture Image" , ExpandCollapse . COLLAPSE ) ; }
Verify capture image command works as intended.
Verify capture image command works as intended .