| 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 Category- |
|
| waitForElementPresent |
link=Category |
|
| click |
link=Category |
|
| waitForElementPresent |
//div[@id='FAQCategroManager']//a[text()='Add Category'] |
|
| clickAt |
//div[@id='FAQCategroManager']//a[text()='Add Category'] |
|
| waitForElementPresent |
eventCategoryName |
|
| type |
eventCategoryName |
SNF_KS_16 |
| waitForElementPresent |
description |
|
| type |
description |
SNF_KS_16 des |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-Add Question - |
|
| waitForElementPresent |
link=SNF_KS_16 |
|
| click |
link=SNF_KS_16 |
|
| waitForElementPresent |
//div[@id='UIQuestions']//a[text()='Submit Question'] |
|
| click |
//div[@id='UIQuestions']//a[text()='Submit Question'] |
|
| waitForElementPresent |
QuestionTitle |
|
| type |
QuestionTitle |
SNF_KS_16 English |
| type |
EmailAddress |
root@localhost.vn |
| waitForElementPresent |
AllLanguages |
|
| select |
AllLanguages |
label=French |
| waitForElementPresent |
//option[@value='French'] |
|
| click |
//option[@value='French'] |
|
| waitForElementPresent |
QuestionTitle |
|
| type |
QuestionTitle |
SNF_KS_16 French |
| waitForElementPresent |
link=Save |
|
| mouseDown |
link=Save |
|
| waitForElementPresent |
//div[@id='UIAnswersPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIAnswersPortlet']//a[text()='OK'] |
|
| echo |
-Comment Question- |
|
| waitForElementPresent |
link=SNF_KS_16 English |
|
| click |
link=SNF_KS_16 English |
|
| echo |
- Comment a question |
|
| waitForElementPresent |
//a[text()='Answer']/following::a[text()='Comment'] |
|
| click |
//a[text()='Answer']/following::a[text()='Comment'] |
|
| waitForElementPresent |
//iframe[@id='CommentContent___Frame'] |
|
| selectFrame |
//iframe[@id='CommentContent___Frame'] |
|
| waitForElementPresent |
//html/body/table/tbody/tr[2]/td/iframe |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Comment in English |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
link=French |
|
| click |
link=French |
|
| waitForElementPresent |
//a[text()='Answer']/following::a[text()='Comment'] |
|
| click |
//a[text()='Answer']/following::a[text()='Comment'] |
|
| waitForElementPresent |
//iframe[@id='CommentContent___Frame'] |
|
| selectFrame |
//iframe[@id='CommentContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Comment in French |
| selectFrame |
relative=top |
|
| waitForElementPresent |
//form[@id='UICommentForm']//a[text()="Save"] |
|
| click |
//form[@id='UICommentForm']//a[text()="Save"] |
|
| echo |
-Edit Comment- |
|
| waitForElementPresent |
link=English |
|
| click |
link=English |
|
| waitForTextPresent |
Comment in English |
|
| verifyTextPresent |
Comment in English |
|
| echo |
-Edit comment English |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//a[@title='Edit Comment'] |
|
| click |
//div[@id='AnswersViewContent']//a[@title='Edit Comment'] |
|
| waitForElementPresent |
//iframe[@id='CommentContent___Frame'] |
|
| selectFrame |
//iframe[@id='CommentContent___Frame'] |
|
| waitForElementPresent |
//html/body/table/tbody/tr[2]/td/iframe |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Comment in English Update |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForTextPresent |
Comment in English Update |
|
| verifyTextPresent |
Comment in English Update |
|
| waitForElementPresent |
link=French |
|
| click |
link=French |
|
| echo |
-Edit comment French |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//a[@title='Edit Comment'] |
|
| click |
//div[@id='AnswersViewContent']//a[@title='Edit Comment'] |
|
| waitForElementPresent |
//iframe[@id='CommentContent___Frame'] |
|
| selectFrame |
//iframe[@id='CommentContent___Frame'] |
|
| waitForElementPresent |
//html/body/table/tbody/tr[2]/td/iframe |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Comment in French Update |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForTextPresent |
Comment in French Update |
|
| verifyTextPresent |
Comment in French Update |
|
| echo |
-Delete Comment- |
|
| waitForElementPresent |
link=English |
|
| click |
link=English |
|
| waitForTextPresent |
Comment in English Update |
|
| verifyTextPresent |
Comment in English Update |
|
| echo |
-Delete comment French |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//a[@title="Delete Comment"] |
|
| click |
//div[@id='AnswersViewContent']//a[@title="Delete Comment"] |
|
| verifyConfirmation |
Are you sure to delete this comment? |
|
| waitForTextNotPresent |
Comment in English Update |
|
| verifyTextNotPresent |
Comment in English Update |
|
| waitForElementPresent |
link=French |
|
| click |
link=French |
|
| echo |
-Delete comment French |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//a[@title="Delete Comment"] |
|
| click |
//div[@id='AnswersViewContent']//a[@title="Delete Comment"] |
|
| verifyConfirmation |
Are you sure to delete this comment? |
|
| waitForTextNotPresent |
Comment in French Update |
|
| verifyTextNotPresent |
Comment in French Update |
|
| echo |
- Comment question for promote |
|
| waitForElementPresent |
link=English |
|
| click |
link=English |
|
| waitForElementPresent |
//a[text()='Answer']/following::a[text()='Comment'] |
|
| click |
//a[text()='Answer']/following::a[text()='Comment'] |
|
| waitForElementPresent |
//iframe[@id='CommentContent___Frame'] |
|
| selectFrame |
//iframe[@id='CommentContent___Frame'] |
|
| waitForElementPresent |
//html/body/table/tbody/tr[2]/td/iframe |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Comment in English |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
link=French |
|
| click |
link=French |
|
| waitForElementPresent |
//a[text()='Answer']/following::a[text()='Comment'] |
|
| click |
//a[text()='Answer']/following::a[text()='Comment'] |
|
| waitForElementPresent |
//iframe[@id='CommentContent___Frame'] |
|
| selectFrame |
//iframe[@id='CommentContent___Frame'] |
|
| waitForElementPresent |
//html/body/table/tbody/tr[2]/td/iframe |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Comment in French |
| selectFrame |
relative=top |
|
| waitForElementPresent |
//form[@id='UICommentForm']//a[text()="Save"] |
|
| click |
//form[@id='UICommentForm']//a[text()="Save"] |
|
| echo |
-Promote Comment- |
|
| waitForElementPresent |
link=English |
|
| click |
link=English |
|
| waitForTextPresent |
Comment in English |
|
| verifyTextPresent |
Comment in English |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//a[@title="Promote As Answer"] |
|
| click |
//div[@id='AnswersViewContent']//a[@title="Promote As Answer"] |
|
| waitForTextNotPresent |
No one has answered to that question. |
|
| verifyTextNotPresent |
No one has answered to that question. |
|
| click |
link=French |
|
| waitForTextPresent |
Comment in French |
|
| verifyTextPresent |
Comment in French |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//a[@title="Promote As Answer"] |
|
| click |
//div[@id='AnswersViewContent']//a[@title="Promote As Answer"] |
|
| waitForTextNotPresent |
No one has answered to that question. |
|
| verifyTextNotPresent |
No one has answered to that question. |
|
| echo |
- Delete data- |
|
| 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'] |
|
| waitForTextNotPresent |
SNF_KS_16 English |
|
| verifyTextNotPresent |
SNF_KS_16 English |
|
| echo |
-Delete Category Test- |
|
| waitForElementPresent |
link=Category |
|
| click |
link=Category |
|
| waitForElementPresent |
//div[@id='FAQCategroManager']//a[text()='Delete'] |
|
| clickAt |
//div[@id='FAQCategroManager']//a[text()='Delete'] |
1,1 |
| verifyConfirmation |
Are you sure to delete this category? |
|
| waitForTextNotPresent |
SNF_KS_16 |
|
| verifyTextNotPresent |
SNF_KS_16 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| waitForTextPresent |
Sign in |
|