| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| echo |
-Add Question - |
|
| open |
/portal/private/intranet/answers |
|
| waitForElementPresent |
link=Submit question |
|
| click |
link=Submit question |
|
| waitForElementPresent |
QuestionTitle |
|
| type |
QuestionTitle |
SNF_KS_14 English |
| type |
EmailAddress |
root@localhost.vn |
| select |
AllLanguages |
label=French |
| click |
//option[@value='French'] |
|
| waitForElementPresent |
QuestionTitle |
|
| type |
QuestionTitle |
SNF_KS_14 French |
| waitForElementPresent |
//div[@id="AddQuestion"]//div[@class="UIAction"]//div[@class="ButtonMiddle"] |
|
| clickAt |
//div[@id="AddQuestion"]//div[@class="UIAction"]//div[@class="ButtonMiddle"] |
|
| waitForElementPresent |
//div[@id='UIAnswersPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIAnswersPortlet']//a[text()='OK'] |
|
| echo |
-Comment Question- |
|
| waitForElementPresent |
link=SNF_KS_14 English |
|
| click |
link=SNF_KS_14 English |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//div[@class='Comment']/a |
|
| click |
//div[@id='AnswersViewContent']//div[@class='Comment']/a |
|
| pause |
1000 |
|
| selectFrame |
//iframe[@id='CommentContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Comment in English |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| clickAt |
link=Save |
|
| waitForElementPresent |
link=French |
|
| click |
link=French |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//div[@class='Comment']/a |
|
| click |
//div[@id='AnswersViewContent']//div[@class='Comment']/a |
|
| pause |
1000 |
|
| 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']/div[2]/div[2]/table//div[1]/div/div/div |
|
| click |
//form[@id='UICommentForm']/div[2]/div[2]/table//div[1]/div/div/div |
|
| echo |
-Edit Comment- |
|
| waitForElementPresent |
link=English |
|
| click |
link=English |
|
| waitForTextPresent |
Comment in English |
|
| verifyTextPresent |
Comment in English |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//div[@class='ResponseItemContainer']//table//td[3]/a |
|
| click |
//div[@id='AnswersViewContent']//div[@class='ResponseItemContainer']//table//td[3]/a |
|
| pause |
1000 |
|
| selectFrame |
//iframe[@id='CommentContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Comment in English Update |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| clickAt |
link=Save |
|
| waitForTextPresent |
Comment in English Update |
|
| verifyTextPresent |
Comment in English Update |
|
| waitForElementPresent |
link=French |
|
| click |
link=French |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//div[@class='ResponseItemContainer']//table//td[3]/a |
|
| click |
//div[@id='AnswersViewContent']//div[@class='ResponseItemContainer']//table//td[3]/a |
|
| pause |
1000 |
|
| selectFrame |
//iframe[@id='CommentContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Comment in French Update |
| selectFrame |
relative=top |
|
| waitForElementPresent |
//form[@id='UICommentForm']/div[2]/div[2]/table//div[1]/div/div/div |
|
| click |
//form[@id='UICommentForm']/div[2]/div[2]/table//div[1]/div/div/div |
|
| 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 |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//div[@class='ResponseItemContainer']//table//td[4]/a |
|
| click |
//div[@id='AnswersViewContent']//div[@class='ResponseItemContainer']//table//td[4]/a |
|
| assertConfirmation |
Are you sure you want to delete this comment ? |
|
| waitForTextNotPresent |
Comment in English Update |
|
| verifyTextNotPresent |
Comment in English Update |
|
| waitForElementPresent |
link=French |
|
| click |
link=French |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//div[@class='ResponseItemContainer']//table//td[4]/a |
|
| click |
//div[@id='AnswersViewContent']//div[@class='ResponseItemContainer']//table//td[4]/a |
|
| assertConfirmation |
Are you sure you want to delete this comment ? |
|
| waitForTextNotPresent |
Comment in French Update |
|
| verifyTextNotPresent |
Comment in French Update |
|
| echo |
-Comment Question for Promote Test- |
|
| waitForElementPresent |
link=English |
|
| click |
link=English |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//div[@class='Comment']/a |
|
| click |
//div[@id='AnswersViewContent']//div[@class='Comment']/a |
|
| pause |
1000 |
|
| selectFrame |
//iframe[@id='CommentContent___Frame'] |
|
| 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 |
//div[@id='AnswersViewContent']//div[@class='Comment']/a |
|
| click |
//div[@id='AnswersViewContent']//div[@class='Comment']/a |
|
| pause |
1000 |
|
| 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']/div[2]/div[2]/table//div[1]/div/div/div |
|
| click |
//form[@id='UICommentForm']/div[2]/div[2]/table//div[1]/div/div/div |
|
| echo |
-Promote Comment- |
|
| waitForElementPresent |
link=English |
|
| click |
link=English |
|
| waitForTextPresent |
Comment in English |
|
| verifyTextPresent |
Comment in English |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//div[@class='ResponseItemContainer']//table//td[2]/a |
|
| click |
//div[@id='AnswersViewContent']//div[@class='ResponseItemContainer']//table//td[2]/a |
|
| 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']//div[@class='ResponseItemContainer']//table//td[2]/a |
|
| click |
//div[@id='AnswersViewContent']//div[@class='ResponseItemContainer']//table//td[2]/a |
|
| waitForTextNotPresent |
No one has answered to that question. |
|
| verifyTextNotPresent |
No one has answered to that question. |
|
| echo |
- Delete data- |
|
| waitForElementPresent |
//div[@class='DecoratorMC']//table[@class='DisablePrint']//td[4]/a |
|
| click |
//div[@class='DecoratorMC']//table[@class='DisablePrint']//td[4]/a |
|
| waitForElementPresent |
//form[@id='UIDeleteQuestion']//table[@class='ActionContainer']//div |
|
| clickAt |
//form[@id='UIDeleteQuestion']//table[@class='ActionContainer']//div |
|
| waitForTextNotPresent |
SNF_KS_14 English |
|
| verifyTextNotPresent |
SNF_KS_14 English |
|
| clickAndWait |
link=Logout |
|