| setTimeout |
45000 |
|
| setSpeed |
3000 |
|
| storeGlobal |
javascript{Math.floor(Math.random()*11000)} |
randomSuffix |
| open |
index.php/marketing/default/index |
|
| waitForPageToLoad |
|
|
| clickAndWait |
//div[@id='SecuredActionBarForMarketingSearchAndListView']/div[1]/nav[1]/div[3]/ul/li/a |
|
| waitForPageToLoad |
|
|
| waitForTextPresent |
Email Template Wizard |
|
| waitForTextPresent |
HTML |
|
| clickAndWait |
//div[@id='EmailTemplateTypeView']/ul/li[3]/a/span |
|
| waitForPageToLoad |
|
|
| waitForTextPresent |
Email Template Wizard - HTML |
|
| type |
ClassicEmailTemplateWizardForm_name |
First HTML Template ${randomSuffix} |
| type |
ClassicEmailTemplateWizardForm_subject |
First HTML template |
| click |
//a[@id='generalDataNextLink']/span[3] |
|
| waitForPageToLoad |
|
|
| type |
ClassicEmailTemplateWizardForm_htmlContent |
First HTML template content |
| clickAndWait |
//a[@id='contentFinishLink']/span[3] |
|
| waitForPageToLoad |
|
|
| waitForTextPresent |
First HTML Template ${randomSuffix} |
|
| open |
index.php/marketing/default/index |
|
| waitForPageToLoad |
|
|
| clickAndWait |
//div[@id='SecuredActionBarForMarketingSearchAndListView']/div[1]/nav[1]/div[3]/ul/li/a |
|
| waitForPageToLoad |
|
|
| waitForTextPresent |
Email Template Wizard |
|
| waitForTextPresent |
HTML |
|
| clickAndWait |
//div[@id='EmailTemplateTypeView']/ul/li[3]/a/span |
|
| waitForPageToLoad |
|
|
| waitForTextPresent |
Email Template Wizard - HTML |
|
| type |
ClassicEmailTemplateWizardForm_name |
Second HTML Template ${randomSuffix} |
| type |
ClassicEmailTemplateWizardForm_subject |
Second HTML template |
| click |
//a[@id='generalDataNextLink']/span[3] |
|
| waitForPageToLoad |
|
|
| type |
ClassicEmailTemplateWizardForm_htmlContent |
Second HTML template content |
| clickAndWait |
//a[@id='contentFinishLink']/span[3] |
|
| waitForPageToLoad |
|
|
| waitForTextPresent |
Second HTML Template ${randomSuffix} |
|
| open |
index.php/contacts/default/create |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| waitForTextPresent |
Create Contact |
|
| type |
Contact_firstName |
Test |
| type |
Contact_lastName |
Contact ${randomSuffix} |
| select |
Contact_state_id |
label=Customer |
| type |
id=Contact_primaryEmail_emailAddress |
test@test.com |
| clickAndWait |
save |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| click |
//div[@id='ContactDetailsPortletView']/a |
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| assertText |
//div[@id='zurmoView']/div/table/tbody/tr[1]/td |
Test Contact ${randomSuffix} |
| assertText |
link=Email |
Email |
| click |
link=Email |
|
| waitForPageToLoad |
|
|
| clickAndWait |
//div[@id='NoUserEmailConfigurationYetView']/div/a/span |
|
| waitForPageToLoad |
|
|
| clickAndWait |
//div[@id='NoGlobalEmailConfigurationYetView']/div/a/span |
|
| waitForPageToLoad |
|
|
| waitForTextPresent |
Outbound Email Configuration (SMTP) |
|
| type |
EmailSmtpConfigurationForm_host |
localhost |
| type |
EmailSmtpConfigurationForm_port |
80 |
| clickAndWait |
save |
|
| open |
index.php/contacts/default |
|
| waitForPageToLoad |
|
|
| type |
id=ContactsSearchForm_anyMixedAttributes |
Test Contact ${randomSuffix} |
| keyUp |
id=ContactsSearchForm_anyMixedAttributes |
\10 |
| waitForText |
//div[@id='list-view']/div[2]/table/tbody/tr/td[3] |
Test Contact ${randomSuffix} |
| verifyTextPresent |
Test Contact ${randomSuffix} |
|
| verifyValue |
ContactsSearchForm_anyMixedAttributes |
Test Contact ${randomSuffix} |
| click |
//div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a |
|
| waitForPageToLoad |
|
|
| assertText |
link=Email |
Email |
| click |
link=Email |
|
| waitForPageToLoad |
|
|
| clickAndWait |
//div[@id='NoUserEmailConfigurationYetView']/div/a/span |
|
| waitForPageToLoad |
|
|
| waitForElementPresent |
id=UserEmailConfigurationForm_fromAddress |
|
| type |
id=UserEmailConfigurationForm_fromAddress |
test@zurmo.com |
| clickAndWait |
save |
|
| assertText |
link=Email |
Email |
| click |
link=Email |
|
| waitForPageToLoad |
|
|
| click |
id=CreateEmailMessageForm_contactEmailTemplateNames_SelectLink |
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| type |
id=EmailTemplatesSearchForm_anyMixedAttributes |
First HTML Template ${randomSuffix} |
| keyUp |
id=EmailTemplatesSearchForm_anyMixedAttributes |
\10 |
| waitForText |
//div[@id='list-viewmodal']/div[2]/table/tbody/tr/td |
First HTML Template ${randomSuffix} |
| verifyTextPresent |
First HTML Template ${randomSuffix} |
|
| verifyValue |
EmailTemplatesSearchForm_anyMixedAttributes |
First HTML Template ${randomSuffix} |
| click |
//div[@id='list-viewmodal']/div[2]/table/tbody/tr/td/a |
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| verifyValue |
CreateEmailMessageForm_content_htmlContent |
<html><head> </head> <body> First HTML template content </body></html> |
| click |
id=CreateEmailMessageForm_contactEmailTemplateNames_SelectLink |
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| type |
id=EmailTemplatesSearchForm_anyMixedAttributes |
Second HTML Template ${randomSuffix} |
| keyUp |
id=EmailTemplatesSearchForm_anyMixedAttributes |
\10 |
| waitForText |
//div[@id='list-viewmodal']/div[2]/table/tbody/tr/td |
Second HTML Template ${randomSuffix} |
| verifyTextPresent |
Second HTML Template ${randomSuffix} |
|
| verifyValue |
EmailTemplatesSearchForm_anyMixedAttributes |
Second HTML Template ${randomSuffix} |
| click |
//div[@id='list-viewmodal']/div[2]/table/tbody/tr/td/a |
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| verifyValue |
CreateEmailMessageForm_content_htmlContent |
<html><head> </head> <body> Second HTML template content </body></html> |
| clickAndWait |
//form[@id='edit-form']/div[2]/div/div/a/span[3] |
|
| setSpeed |
0 |
|