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
doubleClick //li[@id='Filters_createdByUser__User']/span
waitForElementPresent //select[@id='RowsAndColumnsReportWizardForm_Filters_1_valueType']
select RowsAndColumnsReportWizardForm_Filters_1_valueType label=Select User
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifySelectedLabel RowsAndColumnsReportWizardForm_Filters_1_valueType Select User
waitForElementPresent //input[@id='RowsAndColumnsReportWizardForm_Filters_1_stringifiedModelForValue']
click RowsAndColumnsReportWizardForm_Filters_1_users_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent UsersSearchForm_anyMixedAttributes
type UsersSearchForm_anyMixedAttributes Sam Smith
keyUp UsersSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a Sam Smith
assertElementPresent link=Sam Smith
click link=Sam Smith
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue RowsAndColumnsReportWizardForm_Filters_1_stringifiedModelForValue Sam Smith
click id=RowsAndColumnsReportWizardForm_Filters_1_availableAtRunTime
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyValue RowsAndColumnsReportWizardForm_Filters_1_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 Created Date Time
assertTextPresent Created Date Time
waitForTextPresent Created By User
assertTextPresent Created By User
waitForTextPresent Name
assertTextPresent Name
waitForTextPresent Office Phone
assertTextPresent Office Phone
waitForTextPresent Created By User
assertTextPresent Created By User
waitForTextPresent Type
assertTextPresent Type
click //a[@id='apply-runtime-filters']/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent No results found