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 |
Test Account ${randomSuffix} |
clickAndWait |
save |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForText |
//div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[1]/td |
Test Account ${randomSuffix} |
open |
index.php/opportunities/default?clearingSearch=1 |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
assertTextPresent |
Create |
|
assertTextPresent |
Update |
|
assertTextPresent |
Export |
|
assertTextPresent |
Delete |
|
clickAndWait |
//div[@id='OpportunitiesSecuredActionBarForSearchAndListView']/div/nav/div[1]/a/span |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
assertTextPresent |
Create Opportunity |
|
clickAndWait |
save |
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForTextPresent |
Name cannot be blank. |
|
waitForTextPresent |
Close Date cannot be blank. |
|
assertSelectedLabel |
Opportunity_amount_currency_id |
USD |
assertText |
Opportunity_amount_value |
|
assertSelectedLabel |
Opportunity_stage_value |
Prospecting |
assertSelectedLabel |
Opportunity_source_value |
(None) |
type |
Opportunity_name |
Test Opportunity ${randomSuffix} |
select |
id=Opportunity_amount_currency_id |
label=EUR |
type |
Opportunity_amount_value |
500.34 |
click |
Opportunity_account_SelectLink |
|
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 |
|
waitForValue |
Opportunity_account_name |
Test 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 |
type |
Opportunity_description |
test description |
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 |
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 |
assertTextPresent |
Test Opportunity ${randomSuffix} |
|
setSpeed |
3000 |
|
assertText |
//div[@id='OpportunityDetailsPortletView']/div/div/div/table/tbody/tr[1]/td |
Test Opportunity ${randomSuffix} |
assertText |
//div[@id='OpportunityDetailsPortletView']/div/div/div/table/tbody/tr[2]/td |
€500.34 |
assertText |
//div[@id='OpportunityDetailsPortletView']/div/div/div/table/tbody/tr[3]/td/a |
Test Account ${randomSuffix} |
assertText |
//div[@id='OpportunityDetailsPortletView']/div/div/div/table/tbody/tr[4]/td |
11/5/13 |
assertText |
//div[@id='OpportunityDetailsPortletView']/div/div/div/table/tbody/tr[5]/td |
Negotiating |
assertText |
//div[@id='OpportunityDetailsPortletView']/div/div/div/table/tbody/tr[6]/td |
50% |
assertText |
//div[@id='OpportunityDetailsPortletView']/div/div/div/table/tbody/tr[7]/td |
Tradeshow |
assertText |
//div[@id='OpportunityDetailsPortletView']/div/div/div/table/tbody/tr[8]/td |
test description |
setSpeed |
0 |
|