mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/mp/TestMissionAppStatusPage.java
private void verifyCommonHeaders(final WebElement missionCard, final String statusTxt, final String templateNameTxt)
    {
        //wait for mission to show up
        WebElement status = missionCard.findElement(By.cssSelector("td[id*='mStatus']"));
        assertThat(status, notNullValue());
        assertThat(status.getText(), is(statusTxt));
        
        WebElement templateName = missionCard.findElement(By.cssSelector("span[id*='templateName']"));
        assertThat(templateName, notNullValue());
        assertThat(templateName.getText(), is(templateNameTxt));
    }
/**
     * Function to verify the common headers of a scheduled/running/shutdown mission on the missions page.
     * @param missionCard
     *  the webelement that holds all the information on the mission
     * @param statusTxt
     *  the status of the mission that is expected to be present
     * @param templateNameTxt
     *  the name of the template of the mission that is expected to be present
     */
Function to verify the common headers of a scheduled/running/shutdown mission on the missions page.
@param missionCard
the webelement that holds all the information on the mission
@param statusTxt
the status of the mission that is expected to be present
@param templateNameTxt
the name of the template of the mission that is expected to be present
Function to verify the common headers of a scheduled / running / shutdown mission on the missions page . @param missionCard the webelement that holds all the information on the mission @param statusTxt the status of the mission that is expected to be present @param templateNameTxt the name of the template of the mission that is expected to be present
private void verifyCommonHeaders(final WebElement missionCard, final String statusTxt, final String templateNameTxt)
    {
        WebElement status = missionCard.findElement(By.cssSelector("td[id*='mStatus']"));
        assertThat(status, notNullValue());
        assertThat(status.getText(), is(statusTxt));
        WebElement templateName = missionCard.findElement(By.cssSelector("span[id*='templateName']"));
        assertThat(templateName, notNullValue());
        assertThat(templateName.getText(), is(templateNameTxt));
    }
private void verifyCommonHeaders ( final WebElement missionCard , final String statusTxt , final String templateNameTxt ) { WebElement status = missionCard . findElement ( By . cssSelector ( "td[id*='mStatus']" ) ) ; assertThat ( status , notNullValue ( ) ) ; assertThat ( status . getText ( ) , is ( statusTxt ) ) ; WebElement templateName = missionCard . findElement ( By . cssSelector ( "span[id*='templateName']" ) ) ; assertThat ( templateName , notNullValue ( ) ) ; assertThat ( templateName . getText ( ) , is ( templateNameTxt ) ) ; }
Function to verify the common headers of a scheduled/running/shutdown mission on the missions page.
Function to verify the common headers of a scheduled / running / shutdown mission on the missions page .
//wait for mission to show up