| 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 |
|
| echo |
-Add Question for Answer- |
|
| waitForElementPresent |
//div[@id='UIQuestions']//a[text()='Submit Question'] |
|
| click |
//div[@id='UIQuestions']//a[text()='Submit Question'] |
|
| waitForElementPresent |
QuestionTitle |
|
| type |
QuestionTitle |
Question for Answer |
| type |
EmailAddress |
root@localhost.vn |
| waitForElementPresent |
link=Save |
|
| mouseDown |
link=Save |
|
| waitForElementPresent |
//div[@id='UIAnswersPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIAnswersPortlet']//a[text()='OK'] |
|
| echo |
-Answer Question- |
|
| waitForElementPresent |
link=Question for Answer |
|
| click |
link=Question for Answer |
|
| waitForElementPresent |
link=Answer |
|
| click |
link=Answer |
|
| waitForElementPresent |
//iframe[@id='QuestionRespone___Frame'] |
|
| selectFrame |
//iframe[@id='QuestionRespone___Frame'] |
|
| waitForElementPresent |
//html/body/table/tbody/tr[2]/td/iframe |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Answer 1 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-Change Approve Mode- |
|
| open |
/portal/public/intranet/answers |
|
| 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 |
//div[@id='DisplayTab']//select[@name='display-mode'] |
|
| select |
//div[@id='DisplayTab']//select[@name='display-mode'] |
label=Approved |
| 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'] |
|
| echo |
-Disapprove Answer- |
|
| waitForElementPresent |
link=Question for Answer |
|
| click |
link=Question for Answer |
|
| waitForTextPresent |
Answer 1 |
|
| verifyTextPresent |
Answer 1 |
|
| waitForElementPresent |
AnswersViewContent |
|
| click |
//div[@id='SetWidthContent']//a[@title='Disapprove'] |
|
| waitForElementPresent |
link=Logout |
|
| click |
link=Logout |
|
| 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/private/intranet/answers |
|
| waitForTextPresent |
Question for Answer |
|
| click |
link=Question for Answer |
|
| waitForTextNotPresent |
Answer 1 |
|
| verifyTextNotPresent |
Answer 1 |
|
| echo |
-Approve the disapproved answer- |
|
| waitForElementPresent |
link=Logout |
|
| click |
link=Logout |
|
| 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 |
|
| waitForTextPresent |
Question for Answer |
|
| click |
link=Question for Answer |
|
| waitForElementPresent |
//div[@id='SetWidthContent']//a[@title='Approve'] |
|
| click |
//div[@id='SetWidthContent']//a[@title='Approve'] |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-Check Approve Answer- |
|
| 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/private/intranet/answers |
|
| waitForTextPresent |
Question for Answer |
|
| click |
link=Question for Answer |
|
| waitForTextPresent |
Answer 1 |
|
| verifyTextPresent |
Answer 1 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-Inactive Answer- |
|
| 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 |
|
| waitForTextPresent |
Question for Answer |
|
| click |
link=Question for Answer |
|
| waitForTextPresent |
Answer 1 |
|
| verifyTextPresent |
Answer 1 |
|
| waitForElementPresent |
//div[@id='SetWidthContent']//a[@title='Disapprove'] |
|
| click |
//div[@id='SetWidthContent']//a[@title='Disapprove'] |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-Check Inactive Answer- |
|
| 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/private/intranet/answers |
|
| waitForTextPresent |
Question for Answer |
|
| click |
link=Question for Answer |
|
| waitForTextNotPresent |
Answer 1 |
|
| verifyTextNotPresent |
Answer 1 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-Activate Inactive answer- |
|
| 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 |
|
| waitForTextPresent |
Question for Answer |
|
| click |
link=Question for Answer |
|
| waitForElementPresent |
//div[@id='SetWidthContent']//a[@title='Approve'] |
|
| click |
//div[@id='SetWidthContent']//a[@title='Approve'] |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
- Check activate Inactive answer- |
|
| 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/private/intranet/answers |
|
| waitForTextPresent |
Question for Answer |
|
| click |
link=Question for Answer |
|
| waitForTextPresent |
Answer 1 |
|
| verifyTextPresent |
Answer 1 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-Delete 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/private/intranet/answers |
|
| waitForElementPresent |
link=Question for Answer |
|
| click |
link=Question for Answer |
|
| click |
//div[@id='AnswersViewContent']//a[@title='Delete'] |
|
| waitForElementPresent |
//form[@id='UIDeleteQuestion']//a[text()='OK'] |
|
| click |
//form[@id='UIDeleteQuestion']//a[text()='OK'] |
|
| waitForElementNotPresent |
link=Question for Answer |
|
| verifyElementNotPresent |
link=Question for Answer |
|
| echo |
-Reset to All Mode- |
|
| 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 |
//div[@id='DisplayTab']//select[@name='display-mode'] |
|
| select |
//div[@id='DisplayTab']//select[@name='display-mode'] |
label=All |
| 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 |
|
| waitForTextPresent |
Sign in |
|
| verifyTextPresent |
Sign in |
|