Create Account Report
setTimeout 45000
storeGlobal javascript{Math.floor(Math.random()*11000)} randomSuffix
open index.php/reports/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='SecuredActionBarForReportsSearchAndListView']/div/nav/div/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='ReportWizardTypeView']/ul/li/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=RowsAndColumnsReportWizardForm_moduleClassName_0
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //a[@id='moduleNextLink']/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Select Filters
waitForTextPresent Annual Revenue
assertTextPresent Annual Revenue
doubleClick //li[@id='Filters_createdDateTime']/span
waitForTextPresent Available At Run Time
assertTextPresent Available At Run Time
select RowsAndColumnsReportWizardForm_Filters_0_valueType label=Last 7 Days
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifySelectedLabel RowsAndColumnsReportWizardForm_Filters_0_valueType Last 7 Days
click id=RowsAndColumnsReportWizardForm_Filters_0_availableAtRunTime
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyValue RowsAndColumnsReportWizardForm_Filters_0_availableAtRunTime on
click //a[@id='filterBysNextLink']/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Select Display Columns
assertTextPresent Select Display Columns
waitForTextPresent Annual Revenue
assertTextPresent Annual Revenue
doubleClick //li[@id='DisplayAttributes_name']/span
waitForValue RowsAndColumnsReportWizardForm_DisplayAttributes_0_label Name
doubleClick //li[@id='DisplayAttributes_officePhone']/span
waitForValue RowsAndColumnsReportWizardForm_DisplayAttributes_1_label Office Phone
doubleClick //li[@id='DisplayAttributes_createdByUser__User']/span
waitForValue RowsAndColumnsReportWizardForm_DisplayAttributes_2_label Created By User
doubleClick //li[@id='DisplayAttributes_type']/span
waitForValue RowsAndColumnsReportWizardForm_DisplayAttributes_3_label Type
click //a[@id='displayAttributesNextLink']/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Select Ordering
waitForTextPresent Annual Revenue
assertTextPresent Annual Revenue
doubleClick //li[@id='OrderBys_type']/span
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent RowsAndColumnsReportWizardForm_OrderBys_0_order
click //a[@id='orderBysDataNextLink']/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Report Wizard - Rows And Columns
type id=RowsAndColumnsReportWizardForm_name Test Account Report ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=RowsAndColumnsReportWizardForm_description Test Account Report description
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //a[@id='generalDataSaveAndRunLink']/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Account Report ${randomSuffix}
waitForTextPresent Name
assertTextPresent Name
waitForTextPresent Office Phone
assertTextPresent Office Phone
waitForTextPresent Created By User
assertTextPresent Created By User
waitForTextPresent Type
assertTextPresent Type