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
verifySelectedLabel RowsAndColumnsReportWizardForm_Filters_0_valueType Last 7 Days
click id=RowsAndColumnsReportWizardForm_Filters_0_availableAtRunTime
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
verifySelectedLabel RowsAndColumnsReportWizardForm_Filters_1_valueType Select User
waitForElementPresent //input[@id='RowsAndColumnsReportWizardForm_Filters_1_stringifiedModelForValue']
setSpeed 3000
click RowsAndColumnsReportWizardForm_Filters_1_users_SelectLink
waitForElementPresent UsersSearchForm_anyMixedAttributes
type UsersSearchForm_anyMixedAttributes Sam Smith
keyUp UsersSearchForm_anyMixedAttributes \10
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a Sam Smith
assertElementPresent link=Sam Smith
click link=Sam Smith
setSpeed 0
waitForValue RowsAndColumnsReportWizardForm_Filters_1_stringifiedModelForValue Sam Smith
click id=RowsAndColumnsReportWizardForm_Filters_1_availableAtRunTime
verifyValue RowsAndColumnsReportWizardForm_Filters_1_availableAtRunTime on
click //a[@id='filterBysNextLink']/span[3]
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]
waitForTextPresent Select Ordering
waitForTextPresent Annual Revenue
assertTextPresent Annual Revenue
doubleClick //li[@id='OrderBys_type']/span
waitForElementPresent RowsAndColumnsReportWizardForm_OrderBys_0_order
click //a[@id='orderBysDataNextLink']/span[3]
waitForTextPresent Report Wizard - Rows And Columns
type id=RowsAndColumnsReportWizardForm_name Test Account Report ${randomSuffix}
type id=RowsAndColumnsReportWizardForm_description Test Account Report description
setSpeed 3000
click //a[@id='generalDataSaveAndRunLink']/span[3]
waitForTextPresent Test Account Report ${randomSuffix}
setSpeed 0
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