mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/advanced/TestSystemConfigurationTab.java
public void assertChangeConfig() throws InterruptedException, ExecutionException, TimeoutException
    {
        WebElement configurationPanel = ConfigurationHelper.findConfigurationPanel(m_PidToChange, false);
        
        //Expand the configuration so that the properties are available.
        WebElement expandConfig = configurationPanel.findElement(
                By.cssSelector("span[class='ui-icon ui-icon-plusthick']"));
        expandConfig.click();
        
        //Find the property table for the configuration.
        WebElement configPropsTable = configurationPanel.findElement(
                By.cssSelector("tbody[id$='compositeConfigTable_data']"));
        WebDriverWait wait = new WebDriverWait(WebDriverFactory.retrieveWebDriver(), 5);
        wait.until(ExpectedConditions.visibilityOf(configPropsTable));
        
        ConfigurationHelper.updateValue(configPropsTable, "Some int", "75");
        ConfigurationHelper.updateValue(configPropsTable, "Some enum", "Value3");
        ConfigurationHelper.updateValue(configPropsTable, "Some bool", true);
        
        //Save changes to the configuration.
        WebElement saveConfig = configurationPanel.findElement(By.cssSelector("button[id*='saveConfig']"));
        
        wait.until(ExpectedConditions.visibilityOf(saveConfig));
        GrowlVerifier.verifyAndWaitToDisappear(20, saveConfig, "Properties Accepted:");
        
        GeneralHelper.sleepWithText(5, "Wait for AJAX to update panel after saving");
        
        configurationPanel = ConfigurationHelper.findConfigurationPanel(m_PidToChange, false);
        configPropsTable = configurationPanel.findElement(By.cssSelector("tbody[id$='compositeConfigTable_data']"));
        wait.until(ExpectedConditions.visibilityOf(configPropsTable));

        assertThat(ConfigurationHelper.getInputBoxValue(configPropsTable, "Some int"), is("75"));
        assertThat(ConfigurationHelper.getSelectOneListBoxValue(configPropsTable, "Some enum"), is("Value3"));
        assertThat(ConfigurationHelper.getBooleanButtonValue(configPropsTable, "Some bool"), is(true));
    }
/**
     * Test changing the values of a configuration.
     * Verify that the values are changed.
     */
Test changing the values of a configuration.
Verify that the values are changed.
Test changing the values of a configuration . Verify that the values are changed .
public void assertChangeConfig() throws InterruptedException, ExecutionException, TimeoutException
    {
        WebElement configurationPanel = ConfigurationHelper.findConfigurationPanel(m_PidToChange, false);
        WebElement expandConfig = configurationPanel.findElement(
                By.cssSelector("span[class='ui-icon ui-icon-plusthick']"));
        expandConfig.click();
        WebElement configPropsTable = configurationPanel.findElement(
                By.cssSelector("tbody[id$='compositeConfigTable_data']"));
        WebDriverWait wait = new WebDriverWait(WebDriverFactory.retrieveWebDriver(), 5);
        wait.until(ExpectedConditions.visibilityOf(configPropsTable));
        ConfigurationHelper.updateValue(configPropsTable, "Some int", "75");
        ConfigurationHelper.updateValue(configPropsTable, "Some enum", "Value3");
        ConfigurationHelper.updateValue(configPropsTable, "Some bool", true);
        WebElement saveConfig = configurationPanel.findElement(By.cssSelector("button[id*='saveConfig']"));
        wait.until(ExpectedConditions.visibilityOf(saveConfig));
        GrowlVerifier.verifyAndWaitToDisappear(20, saveConfig, "Properties Accepted:");
        GeneralHelper.sleepWithText(5, "Wait for AJAX to update panel after saving");
        configurationPanel = ConfigurationHelper.findConfigurationPanel(m_PidToChange, false);
        configPropsTable = configurationPanel.findElement(By.cssSelector("tbody[id$='compositeConfigTable_data']"));
        wait.until(ExpectedConditions.visibilityOf(configPropsTable));
        assertThat(ConfigurationHelper.getInputBoxValue(configPropsTable, "Some int"), is("75"));
        assertThat(ConfigurationHelper.getSelectOneListBoxValue(configPropsTable, "Some enum"), is("Value3"));
        assertThat(ConfigurationHelper.getBooleanButtonValue(configPropsTable, "Some bool"), is(true));
    }
public void assertChangeConfig ( ) throws InterruptedException , ExecutionException , TimeoutException { WebElement configurationPanel = ConfigurationHelper . findConfigurationPanel ( m_PidToChange , false ) ; WebElement expandConfig = configurationPanel . findElement ( By . cssSelector ( "span[class='ui-icon ui-icon-plusthick']" ) ) ; expandConfig . click ( ) ; WebElement configPropsTable = configurationPanel . findElement ( By . cssSelector ( "tbody[id$='compositeConfigTable_data']" ) ) ; WebDriverWait wait = new WebDriverWait ( WebDriverFactory . retrieveWebDriver ( ) , 5 ) ; wait . until ( ExpectedConditions . visibilityOf ( configPropsTable ) ) ; ConfigurationHelper . updateValue ( configPropsTable , "Some int" , "75" ) ; ConfigurationHelper . updateValue ( configPropsTable , "Some enum" , "Value3" ) ; ConfigurationHelper . updateValue ( configPropsTable , "Some bool" , true ) ; WebElement saveConfig = configurationPanel . findElement ( By . cssSelector ( "button[id*='saveConfig']" ) ) ; wait . until ( ExpectedConditions . visibilityOf ( saveConfig ) ) ; GrowlVerifier . verifyAndWaitToDisappear ( 20 , saveConfig , "Properties Accepted:" ) ; GeneralHelper . sleepWithText ( 5 , "Wait for AJAX to update panel after saving" ) ; configurationPanel = ConfigurationHelper . findConfigurationPanel ( m_PidToChange , false ) ; configPropsTable = configurationPanel . findElement ( By . cssSelector ( "tbody[id$='compositeConfigTable_data']" ) ) ; wait . until ( ExpectedConditions . visibilityOf ( configPropsTable ) ) ; assertThat ( ConfigurationHelper . getInputBoxValue ( configPropsTable , "Some int" ) , is ( "75" ) ) ; assertThat ( ConfigurationHelper . getSelectOneListBoxValue ( configPropsTable , "Some enum" ) , is ( "Value3" ) ) ; assertThat ( ConfigurationHelper . getBooleanButtonValue ( configPropsTable , "Some bool" ) , is ( true ) ) ; }
Test changing the values of a configuration.
Test changing the values of a configuration .
//Expand the configuration so that the properties are available. //Find the property table for the configuration. //Save changes to the configuration.