Test_SNF_KS_41_ksdemo_PrivateMessage
open /ksdemo/public/classic/
windowMaximize
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
echo -Private Message-
open /ksdemo/private/classic/forum
waitForElementPresent link=Private Messages
click link=Private Messages
echo -Compose message-
waitForElementPresent link=Compose new message
click link=Compose new message
waitForElementPresent SendTo
type SendTo root,demo
type MailTitle Private Message Test
waitForElementPresent //iframe[@id='MailMessage___Frame']
selectFrame //iframe[@id='MailMessage___Frame']
selectFrame //html/body/table/tbody/tr[2]/td/iframe
type //html/body Private Message Test Content
selectFrame relative=top
waitForElementPresent link=Send
click link=Send
waitForElementPresent //div[@id='UIForumPortlet']//a[text()='OK']
click //div[@id='UIForumPortlet']//a[text()='OK']
echo -View Sent Message-
waitForElementPresent link=Private Message Test
verifyElementPresent link=Private Message Test
click link=Private Message Test
waitForElementPresent //div[@class='MessageContent']//div[@class='Content']
verifyElementPresent //div[@class='MessageContent']//div[@class='Content'] Private Message Test Content
click //form[@id='UIViewPrivateMessageForm']//table[@class='ActionContainer']//div[@class='ActionButton LightBlueStyle']
echo -Delele Sent Message-
click //div[2]/div/div/table//td[4]//div[2]/div
assertConfirmation Are you sure you want to delete this message?
waitForTextPresent No messages
verifyTextPresent No messages
click link=Close
clickAndWait link=Sign out
waitForTextPresent Sign in
echo -Login demo to check receive message-
open /ksdemo/public/classic/
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username demo
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /ksdemo/private/classic/forum
waitForElementPresent link=Private Messages(1)
click link=Private Messages(1)
waitForElementPresent link=Private Message Test
verifyElementPresent link=Private Message Test
click link=Private Message Test
waitForElementPresent //div[@class='MessageContent']//div[@class='Content']
verifyElementPresent //div[@class='MessageContent']//div[@class='Content'] Private Message Test Content
click //form[@id='UIViewPrivateMessageForm']//table[@class='ActionContainer']//div[@class='ActionButton LightBlueStyle']
echo -Reply Message-
click //table[@id='PermissionInfo']//div[@class='IconContent']/div
waitForElementPresent SendTo
verifyValue SendTo root
verifyValue MailTitle Reply: Private Message Test
waitForElementPresent //iframe[@id='MailMessage___Frame']
selectFrame //iframe[@id='MailMessage___Frame']
selectFrame //html/body/table/tbody/tr[2]/td/iframe
type //html/body Message Reply
selectFrame relative=top
waitForElementPresent link=Send
click link=Send
waitForElementPresent //div[@id='UIForumPortlet']//a[text()='OK']
click //div[@id='UIForumPortlet']//a[text()='OK']
waitForElementPresent link=Reply: Private Message Test
verifyElementPresent link=Reply: Private Message Test
echo -Forward Message-
click //div[@class='UIFormForum UIPrivateMessageForm']/form//div[@class='WorkingArea']/div[2]//div[@class='UITabContentContainer']/div[2]//div[@class='IconContent']/div/
waitForElementPresent MailTitle
type SendTo root
verifyValue MailTitle Forward: Reply: Private Message Test
waitForElementPresent link=Send
click link=Send
waitForElementPresent //div[@id='UIForumPortlet']//a[text()='OK']
click //div[@id='UIForumPortlet']//a[text()='OK']
waitForElementPresent link=Forward: Reply: Private Message Test
verifyElementPresent link=Forward: Reply: Private Message Test
click link=Close
click link=Sign out
waitForTextPresent Sign in
echo -Check Reply and Forward message-
open /ksdemo/public/classic/
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /ksdemo/public/classic/forum
waitForElementPresent link=Private Messages(2)
click link=Private Messages(2)
waitForElementPresent link=Reply: Private Message Test
verifyElementPresent link=Reply: Private Message Test
verifyElementPresent link=Forward: Reply: Private Message Test
click link=Reply: Private Message Test
pause 2000
waitForTextPresent Message Reply
verifyTextPresent Message Reply
click //form[@id='UIViewPrivateMessageForm']//table[@class='ActionContainer']//div[@class='ActionButton LightBlueStyle']
waitForElementPresent link=Forward: Reply: Private Message Test
click link=Forward: Reply: Private Message Test
pause 2000
waitForTextPresent Title: Forward: Reply: Private Message Test
verifyTextPresent Title: Forward: Reply: Private Message Test
click //form[@id='UIViewPrivateMessageForm']//table[@class='ActionContainer']//div[@class='ActionButton LightBlueStyle']
echo -Delete test data-
waitForElementPresent //table[@id='PermissionInfo']/tbody/tr[1]/td[4]/div/div/div[2]/div
click //table[@id='PermissionInfo']/tbody/tr[1]/td[4]/div/div/div[2]/div
assertConfirmation Are you sure you want to delete this message?
waitForElementPresent //table[@id='PermissionInfo']/tbody/tr[1]/td[4]/div/div/div[2]/div
click //table[@id='PermissionInfo']/tbody/tr[1]/td[4]/div/div/div[2]/div
assertConfirmation Are you sure you want to delete this message?
waitForElementPresent link=Close
click link=Close
waitForElementPresent link=Sign out
click link=Sign out
open /ksdemo/public/classic/
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username demo
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /ksdemo/private/classic/forum
waitForElementPresent link=Private Messages
click link=Private Messages
waitForElementPresent //table[@id='PermissionInfo']/tbody/tr[1]/td[4]/div/div/div[2]/div
click //table[@id='PermissionInfo']/tbody/tr[1]/td[4]/div/div/div[2]/div
assertConfirmation Are you sure you want to delete this message?
waitForElementPresent link=Sent messages
click link=Sent messages
waitForElementPresent //table[@id='PermissionInfo']/tbody/tr[1]/td[4]/div/div/div[2]/div
click //table[@id='PermissionInfo']/tbody/tr[1]/td[4]/div/div/div[2]/div
assertConfirmation Are you sure you want to delete this message?
waitForElementPresent //table[@id='PermissionInfo']/tbody/tr[1]/td[4]/div/div/div[2]/div
click //table[@id='PermissionInfo']/tbody/tr[1]/td[4]/div/div/div[2]/div
assertConfirmation Are you sure you want to delete this message?
waitForElementPresent link=Close
click link=Close
clickAndWait link=Sign out
waitForTextPresent Sign in