setTimeout |
45000 |
|
storeGlobal |
javascript{Math.floor(Math.random()*11000)} |
randomSuffix |
open |
index.php/workflows/default |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
assertTextPresent |
Create |
|
assertTextPresent |
Workflows |
|
assertTextPresent |
Templates |
|
assertTextPresent |
Time Queue |
|
assertTextPresent |
Message Queue |
|
assertTextPresent |
Ordering |
|
clickAndWait |
link=Create Workflow |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForTextPresent |
Workflow Wizard |
|
assertTextPresent |
Workflow Wizard |
|
assertTextPresent |
On-Save Workflow |
|
assertTextPresent |
Time-Based Workflow |
|
clickAndWait |
//div[@id='WorkflowWizardTypeView']/ul/li[1]/a/span |
|
assertTextPresent |
Workflow Wizard - On-Save |
|
click |
//div[@id='ModuleForWorkflowWizardView']/div/div[2]/input |
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
click |
//a[@id='moduleNextLink']/span[3] |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
assertText |
//div[@id='TriggersTreeArea']/div/ul/li[1]/span |
Account |
doubleClick |
//div[@id='TriggersTreeArea']/div/ul/li[1]/ul/li[1]/span |
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForText |
//div[@id='TriggersForWorkflowWizardView']/div[1]/div[2]/div[1]/div[1]/ul/li/div/div/div[1] |
Annual Revenue |
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
type |
id=OnSaveWorkflowWizardForm_Triggers_0_value |
200000 |
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
select |
id=OnSaveWorkflowWizardForm_Triggers_0_operator |
label=Less Than |
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
click |
//a[@id='triggersNextLink']/span[3] |
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForText |
//div[@id='ActionsForWorkflowWizardView']/div[1]/h3 |
Select Actions |
select |
//div[@id='ActionsForWorkflowWizardView']/div/div/div/select |
label=Create |
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
select |
//div[@id='action-type-related-model-selector']/div/select |
label=Accounts |
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForElementPresent |
id=OnSaveWorkflowWizardForm_Actions_0_ActionAttributes_name_value |
|
type |
id=OnSaveWorkflowWizardForm_Actions_0_ActionAttributes_name_value |
test |
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
click |
//a[@id='OnSaveWorkflowWizardForm_Actions_0_ActionAttributes_owner__User_users_SelectLink']/span[2] |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
type |
id=UsersSearchForm_anyMixedAttributes |
Sally Smith |
keyUp |
id=UsersSearchForm_anyMixedAttributes |
\10 |
waitForText |
//div[@id='list-viewmodal']/div[2]/table/tbody/tr/td/a |
Sally Smith |
verifyTextPresent |
Sally Smith |
|
verifyValue |
UsersSearchForm_anyMixedAttributes |
Sally Smith |
click |
//div[@id='list-viewmodal']/div[2]/table/tbody/tr/td/a |
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
click |
//a[@id='saveAction0']/span[3] |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
click |
//a[@id='actionsNextLink']/span[3] |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForText |
//div[@id='EmailMessagesForWorkflowWizardView']/div[1]/h3 |
Select Messages |
click |
//a[@id='AddEmailMessageLink']/span[3] |
|
waitForElementPresent |
//div[@id='EmailMessagesForWorkflowWizardView']/div[1]/div[3]/div/ul/li/div/div[2]/div[1]/div/table/tbody/tr[1]/th/label |
|
type |
id=OnSaveWorkflowWizardForm_EmailMessages_0_sendAfterDurationInterval |
1234 |
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
select |
id=addRecipientType_0 |
label=A person associated with the triggered record |
click |
//select[@id='addRecipientType_0']/option[2] |
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
click |
//a[@id='emailMessagesNextLink']/span[3] |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForText |
//div[@id='GeneralDataForWorkflowWizardView']/div[1]/h3 |
Save Workflow |
type |
OnSaveWorkflowWizardForm_name |
WorkflowTest ${randomSuffix} |
type |
OnSaveWorkflowWizardForm_description |
test description |
click |
//a[@id='generalDataSaveAndRunLink']/span[3] |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForTextPresent |
WorkflowTest ${randomSuffix} |
|
assertText |
//div[@id='WorkflowDetailsView']/div/div[2]/div/table/tbody/tr[1]/td |
WorkflowTest ${randomSuffix} |
assertText |
//div[@id='WorkflowDetailsView']/div/div[2]/div/table/tbody/tr[2]/td |
test description |
assertText |
//div[@id='WorkflowDetailsView']/div/div[2]/div/table/tbody/tr[3]/td |
New Records Only |