Add Task To Project
setTimeout 45000
open index.php/projects/default/dashboardDetails
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Dashboard
assertTextPresent Projects
assertElementNotPresent //li[@id='list-view-massActionSelected']/a
assertElementNotPresent //li[@id='list-view-exportActionSelected']/a
clickAndWait //div[@id='SecuredActionBarForProjectsDashboardView']/div[1]/nav[1]/div[2]/a/span
assertElementPresent //li[@id='list-view-massActionSelected']/a
assertElementPresent //li[@id='list-view-exportActionSelected']/a
type ProjectsSearchForm_anyMixedAttributes Test Project ${randomSuffix}
keyUp ProjectsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr/td[2]/a Test Project ${randomSuffix}
verifyTextPresent Test Project ${randomSuffix}
verifyValue ProjectsSearchForm_anyMixedAttributes Test Project ${randomSuffix}
setSpeed 3000
click //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[2]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //nav[contains(@class, 'pillbox clearfix')]/div[3]/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type Task_name Test Task ${randomSuffix}
type Task_description test description
assertText link=More Details More Details
click link=More Details
select id=Task_status_value label=In Progress
click //a[@id='Task_requestedByUser_SelectLink']/span[2]
waitForPageToLoad
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
assertText link=Sam Smith Sam Smith
click link=Sam Smith
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue Task_requestedByUser_name Sam Smith
click //a[@id='Task_owner_SelectLink']/span[2]
waitForPageToLoad
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
assertText link=Sam Smith Sam Smith
click link=Sam Smith
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue Task_owner_name Sam Smith
click //a[@id='TaskActivityItemForm_Account_SelectLink']/span[2]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent AccountsSearchForm_anyMixedAttributes
type AccountsSearchForm_anyMixedAttributes Test Account ${randomSuffix}
keyUp AccountsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a Test Account ${randomSuffix}
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue TaskActivityItemForm_Account_name Test Account ${randomSuffix}
click //a[@id='TaskActivityItemForm_Contact_SelectLink']/span[2]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent ContactsSearchForm_anyMixedAttributes
type ContactsSearchForm_anyMixedAttributes Test Contact ${randomSuffix}
keyUp ContactsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a Test Contact ${randomSuffix}
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue TaskActivityItemForm_Contact_name Test Contact ${randomSuffix}
click //a[@id='TaskActivityItemForm_Opportunity_SelectLink']/span[2]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent OpportunitiesSearchForm_anyMixedAttributes
type OpportunitiesSearchForm_anyMixedAttributes Test Opportunity ${randomSuffix}
keyUp OpportunitiesSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a Test Opportunity ${randomSuffix}
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue TaskActivityItemForm_Opportunity_name Test Opportunity ${randomSuffix}
click //form[@id='task-modal-edit-form']/div[3]/div/div/a/span[3]
open index.php/projects/default/list
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=clear-search-link
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextNotPresent Criteria Selected