setTimeout |
45000 |
|
storeGlobal |
javascript{Math.floor(Math.random()*11000)} |
randomSuffix |
open |
index.php/gameRewards/default/create |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForTextPresent |
Create Game Reward |
|
clickAndWait |
save |
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForTextPresent |
Name cannot be blank. |
|
waitForTextPresent |
Cost in Coins cannot be blank. |
|
waitForTextPresent |
Quantity Available cannot be blank. |
|
type |
GameReward_cost |
test cost |
type |
GameReward_quantity |
test cost |
clickAndWait |
save |
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForTextPresent |
Cost in Coins must be a number. |
|
waitForTextPresent |
Quantity Available must be a number. |
|
type |
GameReward_name |
Test Game Reward ${randomSuffix} |
type |
GameReward_cost |
1000 |
type |
GameReward_quantity |
10 |
type |
GameReward_description |
Game Rewards Description |
clickAndWait |
save |
|
waitForPageToLoad |
|
|
waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
waitForText |
//div[@id='GameRewardDetailsAndRelationsView']/div/div/ul/li[1]/div[1]/h3 |
Test Game Reward ${randomSuffix} |
waitForText |
//div[@id='GameRewardDetailsPortletView']/div/div/div/table/tbody/tr[2]/td |
1,000 |
waitForText |
//div[@id='GameRewardDetailsPortletView']/div/div/div/table/tbody/tr[3]/td |
10 |
waitForText |
//div[@id='GameRewardDetailsPortletView']/div/div/div/table/tbody/tr[5]/td |
Game Rewards Description |
assertText |
//div[@id='GameRewardDetailsAndRelationsView']/div/div/ul/li[1]/div[1]/h3 |
Test Game Reward ${randomSuffix} |
assertText |
//div[@id='GameRewardDetailsPortletView']/div/div/div/table/tbody/tr[2]/td |
1,000 |
assertText |
//div[@id='GameRewardDetailsPortletView']/div/div/div/table/tbody/tr[3]/td |
10 |
assertText |
//div[@id='GameRewardDetailsPortletView']/div/div/div/table/tbody/tr[5]/td |
Game Rewards Description |