| open |
/ksdemo/public/classic/ |
|
| windowMaximize |
|
|
| echo |
-Login by Root |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()="Sign in"] |
|
| echo |
-Access Answers pages |
|
| open |
/ksdemo/private/classic/answers |
|
| echo |
-Show/hide Category- |
|
| waitForElementPresent |
FAQCustomView |
|
| click |
FAQCustomView |
|
| echo |
-Check hide |
|
| waitForNotVisible |
//a[@title="Technical FAQ"] |
|
| verifyNotVisible |
//a[@title="Technical FAQ"] |
|
| waitForNotVisible |
//a[@title="General Questions"] |
|
| verifyNotVisible |
//a[@title="General Questions"] |
|
| echo |
-Check show |
|
| click |
FAQCustomView |
|
| waitForVisible |
//a[@title="Technical FAQ"] |
|
| verifyVisible |
//a[@title="Technical FAQ"] |
|
| waitForVisible |
//a[@title="General Questions"] |
|
| verifyVisible |
//a[@title="General Questions"] |
|
| echo |
-Add Question for Setting test- |
|
| waitForElementPresent |
link=Submit question |
|
| click |
link=Submit question |
|
| waitForElementPresent |
QuestionTitle |
|
| type |
QuestionTitle |
Ques_SNF_KS_21 |
| type |
EmailAddress |
root@localhost.vn |
| echo |
-Save |
|
| waitForElementPresent |
//div[@id="AddQuestion"]//a[text()="Save"] |
|
| mouseDown |
//div[@id="AddQuestion"]//a[text()="Save"] |
|
| waitForTextPresent |
The question has been posted. |
|
| verifyTextPresent |
The question has been posted. |
|
| echo |
-OK |
|
| waitForElementPresent |
//div[@id='UIAnswersPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIAnswersPortlet']//a[text()='OK'] |
|
| waitForTextPresent |
Ques_SNF_KS_21 |
|
| verifyTextPresent |
Ques_SNF_KS_21 |
|
| echo |
-Disable RSS Comment Avatar- |
|
| waitForElementPresent |
link=Edit Page |
|
| click |
link=Edit Page |
|
| pause |
5000 |
|
| waitForElementPresent |
//a[@title="Edit Portlet"] |
|
| mouseOver |
//a[@title="Edit Portlet"] |
|
| click |
//a[@title="Edit Portlet"] |
|
| waitForElementPresent |
enableVotComment |
|
| uncheck |
enableVotComment |
|
| uncheck |
enableRSS |
|
| uncheck |
enableViewAvatar |
|
| echo |
-Save |
|
| waitForElementPresent |
//form[@id='FAQPortletSetting']//a[text()="Save"] |
|
| click |
//form[@id='FAQPortletSetting']//a[text()="Save"] |
|
| waitForTextPresent |
The settings have been saved. |
|
| verifyTextPresent |
The settings have been saved. |
|
| echo |
-OK |
|
| waitForElementPresent |
//div[@id='UIAnswersPortlet']//a[text()="OK"] |
|
| click |
//div[@id='UIAnswersPortlet']//a[text()="OK"] |
|
| echo |
-Close |
|
| waitForElementPresent |
Close |
|
| click |
Close |
|
| echo |
-Finish |
|
| waitForElementPresent |
//div[@id='UIPageEditor']//a[@title="Finish"] |
|
| click |
//div[@id='UIPageEditor']//a[@title="Finish"] |
|
| echo |
-Check Disable Settings- |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| echo |
-Login by demo |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()="Sign in"] |
|
| echo |
-Access Answers pages |
|
| open |
/ksdemo/private/classic/answers |
|
| waitForTextPresent |
Ques_SNF_KS_21 |
|
| verifyTextPresent |
Ques_SNF_KS_21 |
|
| waitForElementPresent |
link=Ques_SNF_KS_21 |
|
| click |
link=Ques_SNF_KS_21 |
|
| echo |
-- RSS not display |
|
| waitForElementNotPresent |
//a[contains(@href, '/rest-ksdemo/ks/faq/rss/categories')] |
|
| verifyElementNotPresent |
//a[contains(@href, '/rest-ksdemo/ks/faq/rss/categories')] |
|
| echo |
-- Comment and rate not display |
|
| waitForElementNotPresent |
faqMarkVoteSpace |
|
| verifyElementNotPresent |
faqMarkVoteSpace |
|
| waitForElementNotPresent |
//a[text()="Comment"] |
|
| verifyElementNotPresent |
//a[text()="Comment"] |
|
| echo |
-- Avarta not display |
|
| waitForElementNotPresent |
//div[@class="ImageAvatar"] |
|
| verifyElementNotPresent |
//div[@class="ImageAvatar"] |
|
| echo |
-Sign out Deno |
|
| waitForElementPresent |
link=Sign out |
|
| click |
link=Sign out |
|
| echo |
-login by root |
|
| open |
/ksdemo/public/classic/ |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()="Sign in"] |
|
| open |
/ksdemo/private/classic/answers |
|
| echo |
-Enable RSS Comment Avatar- |
|
| waitForElementPresent |
link=Edit Page |
|
| click |
link=Edit Page |
|
| pause |
5000 |
|
| waitForElementPresent |
//a[@title="Edit Portlet"] |
|
| mouseOver |
//a[@title="Edit Portlet"] |
|
| click |
//a[@title="Edit Portlet"] |
|
| waitForElementPresent |
enableVotComment |
|
| check |
enableVotComment |
|
| check |
enableRSS |
|
| check |
enableViewAvatar |
|
| echo |
-Save |
|
| waitForElementPresent |
//form[@id='FAQPortletSetting']//a[text()="Save"] |
|
| click |
//form[@id='FAQPortletSetting']//a[text()="Save"] |
|
| waitForTextPresent |
The settings have been saved. |
|
| verifyTextPresent |
The settings have been saved. |
|
| echo |
-OK |
|
| waitForElementPresent |
//div[@id='UIAnswersPortlet']//a[text()="OK"] |
|
| click |
//div[@id='UIAnswersPortlet']//a[text()="OK"] |
|
| echo |
-Close |
|
| waitForElementPresent |
Close |
|
| click |
Close |
|
| echo |
-Finish |
|
| waitForElementPresent |
//div[@id='UIPageEditor']//a[@title="Finish"] |
|
| click |
//div[@id='UIPageEditor']//a[@title="Finish"] |
|
| echo |
-Sign out |
|
| waitForElementPresent |
link=Sign out |
|
| click |
link=Sign out |
|
| echo |
-Check Enable Settings- |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()="Sign in"] |
|
| open |
/ksdemo/private/classic/answers |
|
| waitForElementPresent |
link=Ques_SNF_KS_21 |
|
| click |
link=Ques_SNF_KS_21 |
|
| echo |
-- RSS display |
|
| waitForElementPresent |
//a[contains(@href, '/rest-ksdemo/ks/faq/rss/categories')] |
|
| verifyElementPresent |
//a[contains(@href, '/rest-ksdemo/ks/faq/rss/categories')] |
|
| echo |
-- Comment and rate display |
|
| waitForElementPresent |
faqMarkVoteSpace |
|
| verifyElementPresent |
faqMarkVoteSpace |
|
| waitForElementPresent |
//a[text()="Comment"] |
|
| verifyElementPresent |
//a[text()="Comment"] |
|
| echo |
-- Avarta display |
|
| waitForElementPresent |
//div[@class="ImageAvatar"] |
|
| verifyElementPresent |
//div[@class="ImageAvatar"] |
|
| echo |
- log out demo |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| echo |
-Detele Test Data- |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()="Sign in"] |
|
| open |
/ksdemo/private/classic/answers |
|
| waitForElementPresent |
link=Ques_SNF_KS_21 |
|
| click |
link=Ques_SNF_KS_21 |
|
| waitForElementPresent |
//a[@title="Delete"] |
|
| click |
//a[@title="Delete"] |
|
| waitForTextPresent |
Do you really want to delete this question and its answers ? |
|
| verifyTextPresent |
Do you really want to delete this question and its answers ? |
|
| echo |
-OK |
|
| waitForElementPresent |
//form[@id='UIDeleteQuestion']//a[text()="OK"] |
|
| click |
//form[@id='UIDeleteQuestion']//a[text()="OK"] |
|
| echo |
-Sign out |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|