| echo |
--- Sign in |
|
| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| 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_18 GUINESS |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
link=SNF_KS_18 GUINESS |
|
| verifyElementPresent |
link=SNF_KS_18 GUINESS |
|
| echo |
--- Create a question wich matches keyword 'bridge' |
|
| waitForElementPresent |
link=SNF_KS_18 GUINESS |
|
| click |
link=SNF_KS_18 GUINESS |
|
| waitForElementPresent |
link=Submit question |
|
| click |
link=Submit question |
|
| waitForElementPresent |
QuestionTitle |
|
| type |
QuestionTitle |
Q1_SNF_KS_18 |
| 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_18 |
|
| verifyElementPresent |
link=Q1_SNF_KS_18 |
|
| echo |
--- Advanced Search - both Entries and Categories |
|
| click |
//form[@id='QuickSearch']/div[2]/a[2] |
|
| waitForElementPresent |
//form[@id='UIAdvancedSearchForm'] |
|
| waitForElementPresent |
Text |
|
| type |
Text |
GUINESS |
| select |
SearchObject |
label= |
| click |
link=Search |
|
| waitForElementPresent |
ResultQuickSearch |
|
| verifyTextPresent |
Matching entries and categories |
|
| verifyElementPresent |
//form[@id='ResultQuickSearch']//table//a[@title='SNF_KS_18 GUINESS'] |
|
| verifyElementNotPresent |
//form[@id='ResultQuickSearch']//table//a[@title='Q1_SNF_KS_18'] |
|
| type |
Text |
bridge |
| verifyValue |
SearchObject |
categoryAndQuestion |
| click |
link=Search |
|
| waitForElementPresent |
//form[@id='ResultQuickSearch']//table//a[@title='Q1_SNF_KS_18'] |
|
| verifyElementPresent |
//form[@id='ResultQuickSearch']//table//a[@title='Q1_SNF_KS_18'] |
|
| verifyElementNotPresent |
//form[@id='ResultQuickSearch']//table//a[@title='SNF_KS_18 GUINESS'] |
|
| echo |
--- Advanced Search - Categories |
|
| type |
Text |
GUINESS |
| select |
SearchObject |
label=Categories |
| click |
link=Search |
|
| waitForElementPresent |
//form[@id='ResultQuickSearch']//table//a[@title='SNF_KS_18 GUINESS'] |
|
| verifyElementPresent |
//form[@id='ResultQuickSearch']//table//a[@title='SNF_KS_18 GUINESS'] |
|
| verifyElementNotPresent |
//form[@id='ResultQuickSearch']//table//a[@title='Q1_SNF_KS_18'] |
|
| type |
Text |
bridge |
| verifyValue |
SearchObject |
faqCategory |
| click |
link=Search |
|
| waitForTextPresent |
no matches. |
|
| verifyTextPresent |
no matches. |
|
| echo |
--- Advanced Search - Entries |
|
| type |
Text |
bridge |
| select |
SearchObject |
label=Entries |
| click |
link=Search |
|
| waitForElementPresent |
//form[@id='ResultQuickSearch']//table//a[@title='Q1_SNF_KS_18'] |
|
| verifyElementPresent |
//form[@id='ResultQuickSearch']//table//a[@title='Q1_SNF_KS_18'] |
|
| verifyElementNotPresent |
//form[@id='ResultQuickSearch']//table//a[@title='SNF_KS_18 GUINESS'] |
|
| type |
Text |
GUINESS |
| verifyValue |
SearchObject |
faqQuestion |
| click |
link=Search |
|
| waitForTextPresent |
no matches. |
|
| verifyTextPresent |
no matches. |
|
| clickAt |
//form[@id='UIAdvancedSearchForm']//a[text()='Close'] |
|
| waitForElementNotPresent |
//form[@id='UIAdvancedSearchForm'] |
|
| 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_18 |
|
| verifyTextNotPresent |
SNF_KS_18 |
|
| clickAndWait |
link=Logout |
|
| waitForTextPresent |
Sign in |
|
| echo |
--- End of test |
|