| open |
/ksdemo/public/classic/ |
|
| windowMaximize |
|
|
| echo |
-Login by Root |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| echo |
-- Login by Root |
|
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()="Sign in"] |
|
| echo |
-Go to Answers pages |
|
| open |
/ksdemo/private/classic/answers |
|
| echo |
fun1: Add Category |
|
| echo |
-- Category |
|
| waitForElementPresent |
link=Category |
|
| click |
link=Category |
|
| echo |
-- Add Category- |
|
| waitForElementPresent |
link=Add category |
|
| mouseDown |
link=Add category |
|
| waitForElementPresent |
eventCategoryName |
|
| type |
eventCategoryName |
SNF_KS_01 |
| waitForElementPresent |
//img[@title='Select a user '] |
|
| click |
//img[@title='Select a user '] |
|
| waitForElementPresent |
demo |
|
| check |
demo |
|
| waitForElementPresent |
//form[@id='UIUserSelector']//div[contains(text(),"Add")] |
|
| click |
//form[@id='UIUserSelector']//div[contains(text(),"Add")] |
|
| check |
moderatequestions |
|
| check |
ViewAuthorInfor |
|
| check |
moderateAnswers |
|
| type |
description |
the description for snifftest of KS _01 |
| echo |
-- Save |
|
| click |
link=Save |
|
| echo |
-- Verify Add Category function |
|
| waitForElementPresent |
link=SNF_KS_01 |
|
| verifyElementPresent |
link=SNF_KS_01 |
|
| echo |
fun2: Edit Category |
|
| waitForElementPresent |
link=SNF_KS_01 |
|
| click |
link=SNF_KS_01 |
|
| echo |
-- Category |
|
| waitForElementPresent |
link=Category |
|
| click |
link=Category |
|
| echo |
-- Edit |
|
| waitForElementPresent |
//div[@id='FAQCategroManager']//a[text()="Edit"] |
|
| mouseDown |
//div[@id='FAQCategroManager']//a[text()="Edit"] |
|
| waitForElementPresent |
eventCategoryName |
SNF_KS_01 |
| type |
eventCategoryName |
SNF_KS_01 Update |
| type |
index |
4 |
| type |
description |
update script of KS_01 |
| waitForElementPresent |
//form[@id='UICategoryForm']//a[text()="Save"] |
|
| click |
//form[@id='UICategoryForm']//a[text()="Save"] |
|
| echo |
-Verify the edit category- |
|
| pause |
3000 |
|
| waitForElementPresent |
//img[@alt='categories'] |
|
| click |
//img[@alt='categories'] |
|
| waitForTextPresent |
SNF_KS_01 Update |
|
| verifyTextPresent |
SNF_KS_01 Update |
|
| echo |
-Move Category- |
|
| contextMenu |
//a[@title="SNF_KS_01 Update"] |
|
| waitForElementPresent |
//a[@title="SNF_KS_01 Update"] |
|
| clickAt |
//div[@id='UIFAQPopupCategories2']//a[@class='IconItem MoveCategory'] |
|
| waitForElementPresent |
//a[contains(text(),'Technical FAQ')] |
|
| doubleClick |
//a[contains(text(),'Technical FAQ')] |
|
| waitForElementNotPresent |
link=SNF_KS_01 Update |
|
| verifyElementNotPresent |
link=SNF_KS_01 Update |
|
| waitForElementPresent |
//a[@title="Technical FAQ"] |
|
| click |
//a[@title="Technical FAQ"] |
|
| waitForElementPresent |
link=SNF_KS_01 Update |
|
| verifyElementPresent |
link=SNF_KS_01 Update |
|
| echo |
-Delete Category- |
|
| waitForElementPresent |
//a[@title="SNF_KS_01 Update"] |
|
| mouseOver |
//a[@title="SNF_KS_01 Update"] |
|
| contextMenu |
//a[@title="SNF_KS_01 Update"] |
|
| mouseDownRight |
//div[@id='UIFAQPopupCategories2']//a[@class="IconItem DeleteCategory"] |
|
| assertConfirmation |
Are you sure you want to delete this category ? |
|
| waitForTextNotPresent |
SNF_KS_01 Update |
|
| verifyTextNotPresent |
SNF_KS_01 Update |
|
| echo |
-Sign out |
|
| clickAndWait |
link=Sign out |
|