| echo |
--- Sign in |
|
| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/answers |
|
| echo |
--- Create a category which matches keyword 'GUINESS' |
|
| waitForElementPresent |
//div[@onclick="eXo.faq.UIAnswersPortlet.viewTitle('FAQCategroManager');"] |
|
| click |
//div[@onclick="eXo.faq.UIAnswersPortlet.viewTitle('FAQCategroManager');"] |
|
| waitForElementPresent |
link=Add category |
|
| clickAt |
link=Add category |
|
| waitForElementPresent |
eventCategoryName |
|
| type |
eventCategoryName |
SNF_KS_17 GUINESS |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
link=SNF_KS_17 GUINESS |
|
| verifyElementPresent |
link=SNF_KS_17 GUINESS |
|
| echo |
--- Create a question wich matches keyword 'bridge' |
|
| waitForElementPresent |
link=SNF_KS_17 GUINESS |
|
| click |
link=SNF_KS_17 GUINESS |
|
| waitForElementPresent |
link=Submit question |
|
| click |
link=Submit question |
|
| waitForElementPresent |
QuestionTitle |
|
| type |
QuestionTitle |
Q1_SNF_KS_17 |
| waitForElementPresent |
//iframe[@id='Question___Frame'] |
|
| selectFrame |
//iframe[@id='Question___Frame'] |
|
| waitForElementPresent |
//html/body/table/tbody/tr[2]/td/iframe |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
What is the name of the longest bridge of the world ? |
| selectFrame |
relative=top |
|
| 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'] |
|
| waitForElementPresent |
link=Q1_SNF_KS_17 |
|
| verifyElementPresent |
link=Q1_SNF_KS_17 |
|
| echo |
--- Quick Search 'GUINESS' |
|
| waitForElementPresent |
inputValue |
|
| type |
inputValue |
GUINESS |
| click |
//form[@id='QuickSearch']/div[2]/a[1] |
|
| waitForElementPresent |
ResultQuickSearch |
|
| verifyTextPresent |
Matching entries and categories |
|
| verifyElementPresent |
//form[@id='ResultQuickSearch']//table//a[@title='SNF_KS_17 GUINESS'] |
|
| click |
//form[@id='ResultQuickSearch']//table//a[@title='SNF_KS_17 GUINESS'] |
|
| echo |
--- Quick Search 'bridge' |
|
| waitForElementPresent |
inputValue |
|
| type |
inputValue |
bridge |
| click |
//form[@id='QuickSearch']/div[2]/a[1] |
|
| waitForElementPresent |
ResultQuickSearch |
|
| verifyTextPresent |
Matching entries and categories |
|
| verifyElementNotPresent |
//form[@id='ResultQuickSearch']//table//a[@title='SNF_KS_17 GUINESS'] |
|
| verifyElementPresent |
//form[@id='ResultQuickSearch']//table//a[@title='Q1_SNF_KS_17'] |
|
| click |
//form[@id='ResultQuickSearch']//table//a[text()='Close'] |
|
| echo |
--- Delete Test Data then Sign out |
|
| click |
//div[@onclick="eXo.faq.UIAnswersPortlet.viewTitle('FAQCategroManager');"] |
|
| waitForElementPresent |
link=Delete |
|
| clickAt |
link=Delete |
|
| assertConfirmation |
Are you sure you want to delete this category ? |
|
| waitForTextNotPresent |
SNF_KS_17 |
|
| verifyTextNotPresent |
SNF_KS_17 |
|
| clickAndWait |
link=Logout |
|
| waitForTextPresent |
Sign in |
|
| echo |
--- End of test |
|