| open |
/ksdemo/public/classic/ |
|
| windowMaximize |
|
|
| echo |
Step 1: Show Add new category form |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| waitForElementPresent |
//div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a |
|
| clickAndWait |
//div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a |
|
| waitForElementPresent |
link=Category |
|
| click |
link=Category |
|
| mouseDownRight |
link=Add category |
|
| waitForElementPresent |
eventCategoryName |
|
| type |
eventCategoryName |
Test_ANS_01_12 |
| type |
description |
Edit category with View Author of Question option |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
Step 2: Show Edit Category form -Tick on View question authors check box |
|
| waitForElementPresent |
//div[6]/div/a/span |
|
| mouseOver |
//div[6]/div/a/span |
|
| contextMenu |
//div[6]/div/a/span |
|
| clickAt |
//div[@id='UIFAQPopupCategories2']/div/div/div/div/div[5]/a |
1,1 |
| echo |
step3 : Tick on View question authors check box |
|
| waitForElementPresent |
eventCategoryName |
|
| type |
eventCategoryName |
Test_ANS_01_12_Edit |
| type |
description |
Tick on View question authors check box |
| waitForElementPresent |
ViewAuthorInfor |
|
| check |
ViewAuthorInfor |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForText |
//div[6]/div/a/span |
Test_ANS_01_12_Edit |
| verifyText |
//div[6]/div/a/span |
Test_ANS_01_12_Edit |
| echo |
Step 4: Add question and view it |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| echo |
Login demo |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| waitForElementPresent |
//div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a |
|
| clickAndWait |
//div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a |
|
| waitForElementPresent |
//div[6]/div/a/span |
|
| click |
//div[6]/div/a/span |
|
| waitForElementPresent |
link=Submit question |
|
| click |
link=Submit question |
|
| waitForElementPresent |
QuestionTitle |
|
| type |
QuestionTitle |
Question Test_ANS_01_12 |
| selectFrame |
//*[@id="Question___Frame"] |
|
| waitForElementPresent |
//html/body/table/tbody/tr[2]/td/iframe |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| waitForElementPresent |
//html/body |
|
| type |
//html/body |
//*[@id="Question___Frame"] //html/body/table/tbody/tr[2]/td/iframe |
| selectFrame |
relative=top |
|
| type |
EmailAddress |
demo@localhost.com |
| waitForElementPresent |
link=Save |
|
| clickAt |
link=Save |
1,1 |
| waitForElementPresent |
//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
| click |
//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
| waitForElementPresent |
link=Question Test_ANS_01_12 |
|
| click |
link=Question Test_ANS_01_12 |
|
| waitForElementPresent |
//a/span |
|
| verifyElementPresent |
//a/span |
|
| verifyText |
//a/span |
Demo gtn |
| verifyText |
css=span[title='demo@localhost.com'] |
demo@localhost.com |
| echo |
-- Detele Category -- |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| waitForElementPresent |
//div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a |
|
| clickAndWait |
//div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a |
|
| waitForElementPresent |
//div[6]/div/a/span |
|
| mouseOver |
//div[6]/div/a/span |
|
| contextMenu |
//div[6]/div/a/span |
|
| mouseDownRight |
//div[@id='UIFAQPopupCategories2']/div/div/div/div/div[6]/a |
|
| assertConfirmation |
Are you sure you want to delete this category ? |
|
| waitForTextNotPresent |
Test_ANS_01_12 |
|
| verifyTextNotPresent |
Test_ANS_01_12 |
|
| clickAndWait |
link=Sign out |
|
| waitForElementPresent |
//div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a |
|
| clickAndWait |
//div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a |
|
| waitForTextNotPresent |
Test_ANS_01_12 |
|
| verifyTextNotPresent |
Test_ANS_01_12 |
|