mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/observation/TestObservationFilters.java
@Test
    public void testDeleteObservationsByDate() throws InterruptedException, ExecutionException, TimeoutException
    {
        Calendar beforeTime = Calendar.getInstance();
        AssetHelper.assetCaptureData(m_Driver, ASSET_NAME, 2);
        Calendar middleTime = Calendar.getInstance();
        
        //Thread sleep needed to ensure time difference between initial set of observations.
        Thread.sleep(5000);
        
        AssetHelper.assetCaptureData(m_Driver, ASSET_NAME, 3);
        
        AssetHelper.chooseAssetTab(m_Driver, AssetTabConstants.OBSERVATION_TAB); 
        
        // navigate to asset page again to cause a refresh of the obs table
        NavigationHelper.navigateToPage(m_Driver, NavigationButtonNameConstants.NAVBUT_PROP_ASSETS);
        
        ObservationFilterHelper.clickRetrieveDeleteAccordionPanel(m_Driver, ExpandCollapse.EXPAND);
        
        // wait to ensure all 5 capture obs are available
        ObservationFilterHelper.waitTillObsTableUpdates(m_Driver, 5, 25);
        
        ObservationFilterHelper.clickDateCheckBoxAndEnterDateRange(m_Driver, beforeTime, middleTime);
        ObservationFilterHelper.executeObservationDeletion(m_Driver);
        ObservationFilterHelper.waitTillObsTableUpdates(m_Driver, 3, 10);
        
        ObservationFilterHelper.clickDateFilterCheckBox(m_Driver);
    }
/**
     * Test the observation tab's delete observation button with the date range enabled.
     * Verify that only the observations within the date range selected are removed.
     */
Test the observation tab's delete observation button with the date range enabled.
Verify that only the observations within the date range selected are removed.
Test the observation tab ' s delete observation button with the date range enabled . Verify that only the observations within the date range selected are removed .
@Test
    public void testDeleteObservationsByDate() throws InterruptedException, ExecutionException, TimeoutException
    {
        Calendar beforeTime = Calendar.getInstance();
        AssetHelper.assetCaptureData(m_Driver, ASSET_NAME, 2);
        Calendar middleTime = Calendar.getInstance();
        Thread.sleep(5000);
        AssetHelper.assetCaptureData(m_Driver, ASSET_NAME, 3);
        AssetHelper.chooseAssetTab(m_Driver, AssetTabConstants.OBSERVATION_TAB); 
        NavigationHelper.navigateToPage(m_Driver, NavigationButtonNameConstants.NAVBUT_PROP_ASSETS);
        ObservationFilterHelper.clickRetrieveDeleteAccordionPanel(m_Driver, ExpandCollapse.EXPAND);
        ObservationFilterHelper.waitTillObsTableUpdates(m_Driver, 5, 25);
        ObservationFilterHelper.clickDateCheckBoxAndEnterDateRange(m_Driver, beforeTime, middleTime);
        ObservationFilterHelper.executeObservationDeletion(m_Driver);
        ObservationFilterHelper.waitTillObsTableUpdates(m_Driver, 3, 10);
        ObservationFilterHelper.clickDateFilterCheckBox(m_Driver);
    }
@ Test public void testDeleteObservationsByDate ( ) throws InterruptedException , ExecutionException , TimeoutException { Calendar beforeTime = Calendar . getInstance ( ) ; AssetHelper . assetCaptureData ( m_Driver , ASSET_NAME , 2 ) ; Calendar middleTime = Calendar . getInstance ( ) ; Thread . sleep ( 5000 ) ; AssetHelper . assetCaptureData ( m_Driver , ASSET_NAME , 3 ) ; AssetHelper . chooseAssetTab ( m_Driver , AssetTabConstants . OBSERVATION_TAB ) ; NavigationHelper . navigateToPage ( m_Driver , NavigationButtonNameConstants . NAVBUT_PROP_ASSETS ) ; ObservationFilterHelper . clickRetrieveDeleteAccordionPanel ( m_Driver , ExpandCollapse . EXPAND ) ; ObservationFilterHelper . waitTillObsTableUpdates ( m_Driver , 5 , 25 ) ; ObservationFilterHelper . clickDateCheckBoxAndEnterDateRange ( m_Driver , beforeTime , middleTime ) ; ObservationFilterHelper . executeObservationDeletion ( m_Driver ) ; ObservationFilterHelper . waitTillObsTableUpdates ( m_Driver , 3 , 10 ) ; ObservationFilterHelper . clickDateFilterCheckBox ( m_Driver ) ; }
Test the observation tab's delete observation button with the date range enabled.
Test the observation tab ' s delete observation button with the date range enabled .
//Thread sleep needed to ensure time difference between initial set of observations. // navigate to asset page again to cause a refresh of the obs table // wait to ensure all 5 capture obs are available