| setTimeout |
45000 |
|
| storeGlobal |
javascript{Math.floor(Math.random()*11000)} |
randomSuffix |
| open |
index.php/workflows/default |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| waitForTextPresent |
Message Queue |
|
| assertText |
//div[@id='ActionBarSearchAndListView']/div[1]/div/nav/div[1]/a[1]/span |
Workflows |
| assertText |
//div[@id='ActionBarSearchAndListView']/div[1]/div/nav/div[2]/a[1]/span |
Templates |
| assertText |
//div[@id='ActionBarSearchAndListView']/div[1]/div/nav/div[3]/a[1]/span |
Time Queue |
| assertText |
//div[@id='ActionBarSearchAndListView']/div[1]/div/nav/div[4]/a[1]/span |
Message Queue |
| assertText |
//div[@id='ActionBarSearchAndListView']/div[1]/div/nav/div[5]/a[1]/span |
Ordering |
| assertText |
//div[@id='ActionBarSearchAndListView']/div[1]/div/nav/div[1]/ul[1]/li/a |
Create Workflow |
| assertElementPresent |
//div[@id='ActionBarSearchAndListView']/div[1]/div/nav/div[1]/ul[1]/li/a |
|
| clickAndWait |
//div[@id='ActionBarSearchAndListView']/div[1]/div/nav/div[1]/ul[1]/li/a |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| waitForTextPresent |
Workflow Wizard |
|
| assertText |
//div[@id='WorkflowWizardTypeView']/h1/span/span |
Workflow Wizard |
| assertText |
//div[@id='WorkflowWizardTypeView']/ul/li[1]/h4 |
On-Save Workflow |
| assertText |
//div[@id='WorkflowWizardTypeView']/ul/li[2]/h4 |
Time-Based Workflow |
| clickAndWait |
//div[@id='WorkflowWizardTypeView']/ul/li[1]/a/span |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| waitForTextPresent |
Workflow Wizard - On-Save |
|
| assertText |
//div[@id='OnSaveWorkflowWizardView']/div[1]/h1/span/span |
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 |