mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/advanced/TestSystemBundleConfiguration.java
public void assertInstallBundle() throws InterruptedException
    {
        WebDriverWait wait = new WebDriverWait(m_Driver, 20);
        
        File bundleFile = new File(ResourceLocatorUtil.getWorkspacePath(), 
                "example.project/generated/example.project.jar");
        BundleManagerUtil.installBundle(m_Driver, bundleFile, null);
        
        //Uses the bundle search bar feature to find the specified bundle.
        //Wait needed to make sure install dialog has closed and bundle search bar is visible.
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("input[id*='globalFilter']")));
        BundleManagerUtil.clearBundleFilter(m_Driver);
        WebElement bundleRow = BundleManagerUtil.filterBundles(m_Driver, "example.project", true);
        
        //Verify that the table contains the installed bundle.
        WebElement bundleName = bundleRow.findElements(By.tagName("span")).get(1);
        assertThat(bundleName.getText(), is("example.project"));
        
        //Verify that the installed bundle was started automatically.
        WebElement bundleState = bundleRow.findElements(By.tagName("span")).get(3);
        assertThat(bundleState.getText(), is("Active"));
    }
/**
     * Test installing a new bundle.
     * Verify that the bundle is installed and that the status is active.
     */
Test installing a new bundle.
Verify that the bundle is installed and that the status is active.
Test installing a new bundle . Verify that the bundle is installed and that the status is active .
public void assertInstallBundle() throws InterruptedException
    {
        WebDriverWait wait = new WebDriverWait(m_Driver, 20);
        File bundleFile = new File(ResourceLocatorUtil.getWorkspacePath(), 
                "example.project/generated/example.project.jar");
        BundleManagerUtil.installBundle(m_Driver, bundleFile, null);
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("input[id*='globalFilter']")));
        BundleManagerUtil.clearBundleFilter(m_Driver);
        WebElement bundleRow = BundleManagerUtil.filterBundles(m_Driver, "example.project", true);
        WebElement bundleName = bundleRow.findElements(By.tagName("span")).get(1);
        assertThat(bundleName.getText(), is("example.project"));
        WebElement bundleState = bundleRow.findElements(By.tagName("span")).get(3);
        assertThat(bundleState.getText(), is("Active"));
    }
public void assertInstallBundle ( ) throws InterruptedException { WebDriverWait wait = new WebDriverWait ( m_Driver , 20 ) ; File bundleFile = new File ( ResourceLocatorUtil . getWorkspacePath ( ) , "example.project/generated/example.project.jar" ) ; BundleManagerUtil . installBundle ( m_Driver , bundleFile , null ) ; wait . until ( ExpectedConditions . visibilityOfElementLocated ( By . cssSelector ( "input[id*='globalFilter']" ) ) ) ; BundleManagerUtil . clearBundleFilter ( m_Driver ) ; WebElement bundleRow = BundleManagerUtil . filterBundles ( m_Driver , "example.project" , true ) ; WebElement bundleName = bundleRow . findElements ( By . tagName ( "span" ) ) . get ( 1 ) ; assertThat ( bundleName . getText ( ) , is ( "example.project" ) ) ; WebElement bundleState = bundleRow . findElements ( By . tagName ( "span" ) ) . get ( 3 ) ; assertThat ( bundleState . getText ( ) , is ( "Active" ) ) ; }
Test installing a new bundle.
Test installing a new bundle .
//Uses the bundle search bar feature to find the specified bundle. //Wait needed to make sure install dialog has closed and bundle search bar is visible. //Verify that the table contains the installed bundle. //Verify that the installed bundle was started automatically.