setTimeout |
45000 |
|
storeGlobal |
javascript{Math.floor(Math.random()*11000)} |
randomSuffix |
open |
index.php/products/default?clearingSearch=1 |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
assertTextPresent |
Create |
|
assertTextPresent |
Products |
|
assertTextPresent |
Catalog Items |
|
assertTextPresent |
Categories |
|
assertTextPresent |
Delete |
|
assertTextPresent |
Export |
|
clickAndWait |
link=Create Catalog Item |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
assertTextPresent |
Create Catalog Item |
|
clickAndWait |
save |
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForTextPresent |
Name cannot be blank. |
|
assertSelectedLabel |
ProductTemplate_status_value |
Active |
assertSelectedLabel |
ProductTemplate_type_value |
Product |
assertSelectedLabel |
ProductTemplate_priceFrequency_value |
One Time |
assertSelectedLabel |
ProductTemplate_sellPriceFormula_type |
Editable |
assertSelectedLabel |
ProductTemplate_cost_currency_id |
USD |
assertText |
ProductTemplate_cost_value |
|
assertSelectedLabel |
ProductTemplate_listPrice_currency_id |
USD |
assertText |
ProductTemplate_listPrice_value |
|
assertSelectedLabel |
ProductTemplate_sellPrice_currency_id |
USD |
assertText |
ProductTemplate_sellPrice_value |
|
type |
id=ProductTemplate_name |
Test Catalog Item ${randomSuffix} |
type |
id=ProductTemplate_description |
test description |
setSpeed |
3000 |
|
type |
id=token-input-ProductTemplateCategoriesForm_ProductCategory_ids |
boo |
typeKeys |
//*[@id="token-input-ProductTemplateCategoriesForm_ProductCategory_ids"] |
Jil |
typeKeys |
//*[@id="token-input-ProductTemplateCategoriesForm_ProductCategory_ids"] |
Jil |
assertTextPresent |
Books |
|
setSpeed |
0 |
|
select |
id=ProductTemplate_priceFrequency_value |
label=Monthly |
select |
id=ProductTemplate_cost_currency_id |
label=CAD |
select |
id=ProductTemplate_listPrice_currency_id |
label=CAD |
select |
id=ProductTemplate_sellPrice_currency_id |
label=CAD |
type |
id=ProductTemplate_cost_value |
200 |
type |
id=ProductTemplate_listPrice_value |
200 |
type |
id=ProductTemplate_sellPrice_value |
200 |
clickAndWait |
save |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
assertTextPresent |
Test Catalog Item ${randomSuffix} |
|
setSpeed |
3000 |
|
assertText |
//div[@id='ProductTemplateEditAndDetailsView']/div/div[2]/div/table/tbody/tr[1]/td |
Test Catalog Item ${randomSuffix} |
assertText |
//div[@id='ProductTemplateEditAndDetailsView']/div/div[2]/div/table/tbody/tr[2]/td |
test description |
assertText |
//div[@id='ProductTemplateEditAndDetailsView']/div/div[2]/div/table/tbody/tr[3]/td |
Books |
assertText |
//div[@id='ProductTemplateEditAndDetailsView']/div/div[2]/div/table/tbody/tr[4]/td |
Active |
assertText |
//div[@id='ProductTemplateEditAndDetailsView']/div/div[2]/div/table/tbody/tr[5]/td |
Product |
assertText |
//div[@id='ProductTemplateEditAndDetailsView']/div/div[2]/div/table/tbody/tr[6]/td |
Monthly |
assertText |
//div[@id='ProductTemplateEditAndDetailsView']/div/div[2]/div/table/tbody/tr[7]/td |
NA |
assertText |
//div[@id='ProductTemplateEditAndDetailsView']/div/div[2]/div/table/tbody/tr[8]/td |
CA$200.00 |
assertText |
//div[@id='ProductTemplateEditAndDetailsView']/div/div[2]/div/table/tbody/tr[9]/td |
CA$200.00 |
assertText |
//div[@id='ProductTemplateEditAndDetailsView']/div/div[2]/div/table/tbody/tr[10]/td |
CA$200.00 |
setSpeed |
0 |
|