| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| open |
/portal/private/intranet/answers |
|
| waitForElementPresent |
FAQCustomView |
|
| click |
FAQCustomView |
|
| waitForTextNotPresent |
Categories |
|
| verifyTextNotPresent |
Categories |
|
| click |
FAQCustomView |
|
| waitForTextPresent |
Categories |
|
| verifyTextPresent |
Categories |
|
| echo |
-Add Question for Setting test- |
|
| waitForElementPresent |
//div[@id='UIQuestions']//a[text()='Submit Question'] |
|
| click |
//div[@id='UIQuestions']//a[text()='Submit Question'] |
|
| waitForElementPresent |
QuestionTitle |
|
| type |
QuestionTitle |
Ques_SNF_KS_21 |
| type |
EmailAddress |
root@localhost.vn |
| waitForElementPresent |
//form[@id="UIQuestionForm"]//a[text()='Save'] |
|
| clickAt |
//form[@id="UIQuestionForm"]//a[text()='Save'] |
1,1 |
| 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 |
//ul[@id='PortalNavigationTopContainer']//a[text()='Edit'] |
|
| mouseOver |
//ul[@id='PortalNavigationTopContainer']//a[text()='Edit'] |
|
| waitForElementPresent |
//ul[@id='PortalNavigationTopContainer']//a[text()='Page'] |
|
| mouseOver |
//ul[@id='PortalNavigationTopContainer']//a[text()='Page'] |
|
| waitForElementPresent |
//ul[@id='PortalNavigationTopContainer']//a[text()='Layout'] |
|
| click |
//ul[@id='PortalNavigationTopContainer']//a[text()='Layout'] |
|
| echo |
- Edit Answer portlet |
|
| waitForElementPresent |
//div[@id='UIPage'] |
|
| mouseOver |
//div[@id='UIPage'] |
|
| waitForElementPresent |
//div[@id='UIPage']//a[@title='Edit Portlet'] |
|
| click |
//div[@id='UIPage']//a[@title='Edit Portlet'] |
|
| waitForElementPresent |
enableVotComment |
|
| click |
enableVotComment |
|
| waitForElementPresent |
enableRSS |
|
| click |
enableRSS |
|
| waitForElementPresent |
enableViewAvatar |
|
| click |
enableViewAvatar |
|
| waitForElementPresent |
//form[@id='FAQPortletSetting']//a[text()='Save'] |
|
| click |
//form[@id='FAQPortletSetting']//a[text()='Save'] |
|
| waitForElementPresent |
//div[@id='UIPortalApplication']//a[text()='OK'] |
|
| click |
//div[@id='UIPortalApplication']//a[text()='OK'] |
|
| waitForElementPresent |
//div[@id='UIMaskWorkspace']//a[@id='Close'] |
|
| click |
//div[@id='UIMaskWorkspace']//a[@id='Close'] |
|
| echo |
- Save Portlet |
|
| waitForElementPresent |
//div[@id='UIPageEditor']//a[@title='Finish'] |
|
| click |
//div[@id='UIPageEditor']//a[@title='Finish'] |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-Check Disable Settings- |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| open |
/portal/public/intranet/answers |
|
| waitForTextPresent |
Ques_SNF_KS_21 |
|
| verifyTextPresent |
Ques_SNF_KS_21 |
|
| waitForElementPresent |
link=Ques_SNF_KS_21 |
|
| click |
link=Ques_SNF_KS_21 |
|
| echo |
- Check items aren't displayed: Avatar, Rate, RSS, Comment |
|
| waitForElementNotPresent |
//div[@class='ActionButton LightBlueStyle']//a[text()='Comment'] |
|
| verifyElementNotPresent |
//div[@class='ActionButton LightBlueStyle']//a[text()='Comment'] |
|
| waitForElementNotPresent |
//img[@alt='Avatar'] |
|
| verifyElementNotPresent |
//img[@alt='Avatar'] |
|
| waitForElementNotPresent |
//div[@class='RatedVote'] |
|
| verifyElementNotPresent |
//div[@class='RatedVote'] |
|
| waitForTextNotPresent |
//div[@id='UIQuestions']//a[text()='RSS'] |
|
| verifyTextNotPresent |
//div[@id='UIQuestions']//a[text()='RSS'] |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
- Enable Settings- |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| open |
/portal/public/intranet/answers |
|
| echo |
- Enable RSS Comment Avatar- |
|
| waitForElementPresent |
//ul[@id='PortalNavigationTopContainer']//a[text()='Edit'] |
|
| mouseOver |
//ul[@id='PortalNavigationTopContainer']//a[text()='Edit'] |
|
| waitForElementPresent |
//ul[@id='PortalNavigationTopContainer']//a[text()='Page'] |
|
| mouseOver |
//ul[@id='PortalNavigationTopContainer']//a[text()='Page'] |
|
| waitForElementPresent |
//ul[@id='PortalNavigationTopContainer']//a[text()='Layout'] |
|
| click |
//ul[@id='PortalNavigationTopContainer']//a[text()='Layout'] |
|
| echo |
- Edit Answer portlet |
|
| waitForElementPresent |
//div[@id='UIPage'] |
|
| mouseOver |
//div[@id='UIPage'] |
|
| waitForElementPresent |
//div[@id='UIPage']//a[@title='Edit Portlet'] |
|
| click |
//div[@id='UIPage']//a[@title='Edit Portlet'] |
|
| waitForElementPresent |
enableVotComment |
|
| click |
enableVotComment |
|
| waitForElementPresent |
enableRSS |
|
| click |
enableRSS |
|
| waitForElementPresent |
enableViewAvatar |
|
| click |
enableViewAvatar |
|
| waitForElementPresent |
//form[@id='FAQPortletSetting']//a[text()='Save'] |
|
| click |
//form[@id='FAQPortletSetting']//a[text()='Save'] |
|
| waitForElementPresent |
//div[@id='UIPortalApplication']//a[text()='OK'] |
|
| click |
//div[@id='UIPortalApplication']//a[text()='OK'] |
|
| waitForElementPresent |
//div[@id='UIMaskWorkspace']//a[@id='Close'] |
|
| click |
//div[@id='UIMaskWorkspace']//a[@id='Close'] |
|
| echo |
- Save Portlet |
|
| waitForElementPresent |
//div[@id='UIPageEditor']//a[@title='Finish'] |
|
| click |
//div[@id='UIPageEditor']//a[@title='Finish'] |
|
| waitForElementPresent |
link=Logout |
|
| click |
link=Logout |
|
| echo |
-Check Enable Settings- |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| open |
/portal/public/intranet/answers |
|
| waitForTextPresent |
Ques_SNF_KS_21 |
|
| verifyTextPresent |
Ques_SNF_KS_21 |
|
| waitForElementPresent |
link=Ques_SNF_KS_21 |
|
| click |
link=Ques_SNF_KS_21 |
|
| echo |
- Check displaying of: Avatar, Rate, RSS, Comment |
|
| waitForElementPresent |
//a[text()='Answer']/following::a[text()='Comment'] |
|
| verifyElementPresent |
//a[text()='Answer']/following::a[text()='Comment'] |
|
| waitForElementPresent |
//img[@alt='Avatar'] |
|
| verifyElementPresent |
//img[@alt='Avatar'] |
|
| waitForElementPresent |
//div[@class='RatedVote'] |
|
| verifyElementPresent |
//div[@class='RatedVote'] |
|
| waitForElementPresent |
//div[@id='UIQuestions']//a[text()='RSS'] |
|
| verifyElementPresent |
//div[@id='UIQuestions']//a[text()='RSS'] |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-Detele Test Data- |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| open |
/portal/public/intranet/answers |
|
| waitForElementPresent |
link=Ques_SNF_KS_21 |
|
| click |
link=Ques_SNF_KS_21 |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//a[@title='Delete'] |
|
| click |
//div[@id='AnswersViewContent']//a[@title='Delete'] |
|
| waitForElementPresent |
//form[@id='UIDeleteQuestion']//a[text()='OK'] |
|
| click |
//form[@id='UIDeleteQuestion']//a[text()='OK'] |
|
| verifyElementNotPresent |
link=Ques_SNF_KS_21 |
|
| waitForElementNotPresent |
link=Ques_SNF_KS_21 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| waitForTextPresent |
Sign in |
|