mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/observation/TestObservationFilters.java
@Test
    public void testFilterObservationsByFilterExpression()
        throws TimeoutException, InterruptedException, ExecutionException
    {
        AssetHelper.assetCaptureData(m_Driver, ASSET_NAME, 2);
        
        AssetHelper.chooseAssetTab(m_Driver, AssetTabConstants.OBSERVATION_TAB);
        
        // navigate to asset page again to cause a refresh of the obs table
        // if changing to the asset tab would just update the table, this wouldn't be necessary
        NavigationHelper.navigateToPage(m_Driver, NavigationButtonNameConstants.NAVBUT_PROP_ASSETS);
        
        // ensure all 5 obs are there on the page before proceeding
        ObservationFilterHelper.waitTillObsTableUpdates(m_Driver, 2, 25);
        
        // should be zero now
        ObservationFilterHelper.clickFilterByExpressionAndEnterExpression(m_Driver, 
                "assetName!='testExampleAsset'");
        ObservationFilterHelper.executeFiltering(m_Driver);
        ObservationFilterHelper.waitTillObsTableUpdates(m_Driver, 0, 10);
        
        //Return to no filter.
        ObservationFilterHelper.clickFilterByExpressionCheckBox(m_Driver);
        ObservationFilterHelper.executeFiltering(m_Driver);
        ObservationFilterHelper.waitTillObsTableUpdates(m_Driver, 2, 10);
    }
/**
     * Tests the observation tab's filter by string expression.
     * Verify that the filter displays the correct number of observations.
     */
Tests the observation tab's filter by string expression.
Verify that the filter displays the correct number of observations.
Tests the observation tab ' s filter by string expression . Verify that the filter displays the correct number of observations .
@Test
    public void testFilterObservationsByFilterExpression()
        throws TimeoutException, InterruptedException, ExecutionException
    {
        AssetHelper.assetCaptureData(m_Driver, ASSET_NAME, 2);
        AssetHelper.chooseAssetTab(m_Driver, AssetTabConstants.OBSERVATION_TAB);
        NavigationHelper.navigateToPage(m_Driver, NavigationButtonNameConstants.NAVBUT_PROP_ASSETS);
        ObservationFilterHelper.waitTillObsTableUpdates(m_Driver, 2, 25);
        ObservationFilterHelper.clickFilterByExpressionAndEnterExpression(m_Driver, 
                "assetName!='testExampleAsset'");
        ObservationFilterHelper.executeFiltering(m_Driver);
        ObservationFilterHelper.waitTillObsTableUpdates(m_Driver, 0, 10);
        ObservationFilterHelper.clickFilterByExpressionCheckBox(m_Driver);
        ObservationFilterHelper.executeFiltering(m_Driver);
        ObservationFilterHelper.waitTillObsTableUpdates(m_Driver, 2, 10);
    }
@ Test public void testFilterObservationsByFilterExpression ( ) throws TimeoutException , InterruptedException , ExecutionException { AssetHelper . assetCaptureData ( m_Driver , ASSET_NAME , 2 ) ; AssetHelper . chooseAssetTab ( m_Driver , AssetTabConstants . OBSERVATION_TAB ) ; NavigationHelper . navigateToPage ( m_Driver , NavigationButtonNameConstants . NAVBUT_PROP_ASSETS ) ; ObservationFilterHelper . waitTillObsTableUpdates ( m_Driver , 2 , 25 ) ; ObservationFilterHelper . clickFilterByExpressionAndEnterExpression ( m_Driver , "assetName!='testExampleAsset'" ) ; ObservationFilterHelper . executeFiltering ( m_Driver ) ; ObservationFilterHelper . waitTillObsTableUpdates ( m_Driver , 0 , 10 ) ; ObservationFilterHelper . clickFilterByExpressionCheckBox ( m_Driver ) ; ObservationFilterHelper . executeFiltering ( m_Driver ) ; ObservationFilterHelper . waitTillObsTableUpdates ( m_Driver , 2 , 10 ) ; }
Tests the observation tab's filter by string expression.
Tests the observation tab ' s filter by string expression .
// navigate to asset page again to cause a refresh of the obs table // if changing to the asset tab would just update the table, this wouldn't be necessary // ensure all 5 obs are there on the page before proceeding // should be zero now //Return to no filter.