| Create Conversation | ||
| setTimeout | 45000 | |
| storeGlobal | javascript{Math.floor(Math.random()*11000)} | randomSuffix |
| open | index.php/accounts/default/create | |
| waitForPageToLoad | ||
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForTextPresent | Create Account | |
| type | Account_name | my account ${randomSuffix} |
| clickAndWait | save | |
| waitForPageToLoad | ||
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForTextPresent | my account ${randomSuffix} | |
| open | index.php/opportunities/default/create | |
| waitForPageToLoad | ||
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForTextPresent | Create Opportunity | |
| type | Opportunity_name | Test Opportunity ${randomSuffix} |
| type | Opportunity_amount_value | 500.34 |
| click | Opportunity_account_SelectLink | |
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForElementPresent | AccountsSearchForm_anyMixedAttributes | |
| type | AccountsSearchForm_anyMixedAttributes | my 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 | my account ${randomSuffix} |
| click | //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a | |
| waitForValue | Opportunity_account_name | my account ${randomSuffix} |
| assertNotValue | Opportunity_account_id | |
| click | id=Opportunity_closeDate | |
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| click | //div[@id='ui-datepicker-div']/table/tbody/tr/td[3]/a | |
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| select | Opportunity_stage_value | label=Negotiating |
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| select | Opportunity_source_value | label=Tradeshow |
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| click | Opportunity_owner_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 | |
| waitForValue | Opportunity_owner_name | Sam Smith |
| assertNotValue | Opportunity_owner_id | |
| clickAndWait | save | |
| waitForPageToLoad | ||
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForText | //div[@id='OpportunityDetailsPortletView']/div/div/div/table/tbody/tr[1]/td | Test Opportunity ${randomSuffix} |
| open | index.php/conversations/default/create | |
| waitForPageToLoad | ||
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForTextPresent | Create Conversation | |
| clickAndWait | save | |
| assertTextPresent | Subject cannot be blank. | |
| type | id=Conversation_subject | New Conversation ${randomSuffix} |
| type | id=Conversation_description | This is a new conversation. It was created by a functional test. |
| assertElementPresent | link=More Details | |
| click | link=More Details | |
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForTextPresent | Attachments | |
| click | ConversationItemForm_Account_SelectLink | |
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForElementPresent | AccountsSearchForm_anyMixedAttributes | |
| type | AccountsSearchForm_anyMixedAttributes | my 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 | my account ${randomSuffix} |
| click | //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a | |
| waitForValue | ConversationItemForm_Account_name | my account ${randomSuffix} |
| click | ConversationItemForm_Opportunity_SelectLink | |
| 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 | |
| waitForValue | ConversationItemForm_Opportunity_name | Test Opportunity ${randomSuffix} |
| clickAndWait | save | |
| waitForPageToLoad | ||
| waitForCondition | selenium.browserbot.getCurrentWindow().jQuery.active == 0 | 30000 |
| waitForTextPresent | New Conversation ${randomSuffix} | |
| type | Comment_description | Hi [~jill],Test Comment by super user |
| click | save | |
| waitForTextPresent | Hi Jill Smith,Test Comment by super user | |
| setSpeed | 3000 | |
| type | id=token-input-ConversationParticipantsForm_item_ids | jil |
| typeKeys | //*[@id="token-input-ConversationParticipantsForm_item_ids"] | Jil |
| typeKeys | //*[@id="token-input-ConversationParticipantsForm_item_ids"] | Jil |
| waitForTextPresent | Participants updated successfully | |
| assertTextPresent | Jill Smith | |
| setSpeed | 0 | |