From do-not-reply at jboss.org Thu Apr 8 06:24:32 2010 Content-Type: multipart/mixed; boundary="===============4534234768896756539==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: gatein-commits at lists.jboss.org Subject: [gatein-commits] gatein SVN: r2531 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design. Date: Thu, 08 Apr 2010 06:24:32 -0400 Message-ID: <201004081024.o38AOWqp006507@svn01.web.mwc.hst.phx2.redhat.com> --===============4534234768896756539== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: hangnguyen Date: 2010-04-08 06:24:32 -0400 (Thu, 08 Apr 2010) New Revision: 2531 Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/por= tal/selenium/design/Test_POR_14_01_044_CheckWhenUserDoesNotHaveRightToAddNe= wPage.html portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/por= tal/selenium/design/Test_POR_25_04_004_CopyPasteNodeToSamePlace.html portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/por= tal/selenium/design/Test_POR_25_05_001_CutPasteNodeToSamePlace.html Log: GTNPORTAL-1029: Create new test for "POR_25_05_001" GTNPORTAL-1031: Create new test for "POR_25_004_004" GTNPORTAL-1047: Create new test for "POR_14_001_044" Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform= /portal/selenium/design/Test_POR_14_01_044_CheckWhenUserDoesNotHaveRightToA= ddNewPage.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po= rtal/selenium/design/Test_POR_14_01_044_CheckWhenUserDoesNotHaveRightToAddN= ewPage.html (rev 0) +++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po= rtal/selenium/design/Test_POR_14_01_044_CheckWhenUserDoesNotHaveRightToAddN= ewPage.html 2010-04-08 10:24:32 UTC (rev 2531) @@ -0,0 +1,582 @@ + + + + + + +Test_POR_14_01_044_CheckWhenUserDoesNotHaveRightToAddNewPage + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test_POR_14_01_044_CheckWhenUserDoesNo= tHaveRightToAddNewPage
open/portal/public/classic/
echo--Register new user
clickAndWaitlink=3DRegister
typeusernamePOR_14_01_044-user
typepasswordPOR_14_01_044-user
typeconfirmPasswordPOR_14_01_044-user
typefirstNamehoa
typelastNamenguyen
typeemailAddressPOR_14_01_044-user(a)gmail.com
waitForElementPresentlink=3DSubscribe
clickAtlink=3DSubscribe
waitForElementPresent//div[@id=3D'UIPage']//div[@class=3D'ExoMessageDecorator']//table[@cl= ass=3D'ActionContainer']//div
clickAt//div[@id=3D'UIPage']//div[@class=3D'ExoMessageDecorator']//table[@cl= ass=3D'ActionContainer']//div
echo--Add new user into group
waitForElementPresentlink=3DSign in
clickAtlink=3DSign in
waitForElementPresent//form[@id=3D'UIPortalComponentLogin']//table[@class=3D'UIFormGrid']/= tbody/tr[@class=3D'UserNameField']/td/input
type//form[@id=3D'UIPortalComponentLogin']//table[@class=3D'UIFormGrid']/= tbody/tr[@class=3D'UserNameField']/td/inputroot
waitForElementPresent//form[@id=3D'UIPortalComponentLogin']//table[@class=3D'UIFormGrid']/= tbody/tr[@id=3D'UIPortalLoginFormControl']/td/input
type//form[@id=3D'UIPortalComponentLogin']//table[@class=3D'UIFormGrid']/= tbody/tr[@id=3D'UIPortalLoginFormControl']/td/inputgtn
clickAndWait//div[@id=3D'UIPortalLoginFormAction']/div/div/div/a
clickAndWaitlink=3DUsers and groups management
waitForElementPresent//div[@id=3D'UIOrganizationPortlet']//a[@class=3D'GroupButton']
clickAt//div[@id=3D'UIOrganizationPortlet']//a[@class=3D'GroupButton']
waitForElementPresent//div[@class=3D'UIGroupManagement']/div[@class=3D'GroupPanel']/div[@c= lass=3D'GroupNavigation']/div[@class=3D'GroupNavigationContainer']/div[@cla= ss=3D'UITrees ScrollArea']/div[@class=3D'TreeContainer JSContainer']/div/di= v[2]/div[@class=3D'ExpandIcon']
clickAt//div[@class=3D'UIGroupManagement']/div[@class=3D'GroupPanel']/div[@c= lass=3D'GroupNavigation']/div[@class=3D'GroupNavigationContainer']/div[@cla= ss=3D'UITrees ScrollArea']/div[@class=3D'TreeContainer JSContainer']/div/di= v[2]/div[@class=3D'ExpandIcon']
waitForElementPresentusername
typeusernamePOR_14_01_044-user
waitForElementPresentlink=3DSave
clickAtlink=3DSave
echo--Add new page
clickAndWaitlink=3DPage Management
waitForElementPresent//div[@id=3D'UIPageBrowser']/div[@class=3D'UIAction']/table[@class=3D= 'ActionContainer']//div[@class=3D'ActionButton LightBlueStyle']
clickAt//div[@id=3D'UIPageBrowser']/div[@class=3D'UIAction']/table[@class=3D= 'ActionContainer']//div[@class=3D'ActionButton LightBlueStyle']
waitForElementPresent//div[@class=3D'UIFormTabPane']//form[@id=3D'UIPageForm']//div[@class= =3D'UITabContentContainer']/div[@class=3D'UITabContent']/div[@class=3D'UIFo= rmInputSet']/table[@class=3D'UIFormGrid']/tbody/tr[2]/td[2]/select[@class= =3D'selectbox']
select//div[@class=3D'UIFormTabPane']//form[@id=3D'UIPageForm']//div[@class= =3D'UITabContentContainer']/div[@class=3D'UITabContent']/div[@class=3D'UIFo= rmInputSet']/table[@class=3D'UIFormGrid']/tbody/tr[2]/td[2]/select[@class= =3D'selectbox']label=3Dportal
waitForElementPresent//div[@class=3D'UIFormTabPane']//form[@id=3D'UIPageForm']//div[@class= =3D'UITabContentContainer']/div[@class=3D'UITabContent']/div[@class=3D'UIFo= rmInputSet']/table[@class=3D'UIFormGrid']/tbody/tr[4]/td[2]/input
type//div[@class=3D'UIFormTabPane']//form[@id=3D'UIPageForm']//div[@class= =3D'UITabContentContainer']/div[@class=3D'UITabContent']/div[@class=3D'UIFo= rmInputSet']/table[@class=3D'UIFormGrid']/tbody/tr[4]/td[2]/inputPOR_14_01_044-page
waitForElementPresentlink=3DSave
clickAtlink=3DSave
echo--Add new node
clickAndWaitlink=3DSite
waitForElementPresentlink=3DEdit Navigation
clickAtlink=3DEdit Navigation
waitForElementPresentlink=3DAdd Node
clickAtlink=3DAdd Node
waitForElementPresent//div[@class=3D'UIFormTabPane']//form[@id=3D'UIPageNodeForm2']//div[@= class=3D'UITabContentContainer']/div[@class=3D'UITabContent']/div[@class=3D= 'UIFormInputSet']/table[@class=3D'UIFormGrid']/tbody/tr[2]/td[2]/input
type//div[@class=3D'UIFormTabPane']//form[@id=3D'UIPageNodeForm2']//div[@= class=3D'UITabContentContainer']/div[@class=3D'UITabContent']/div[@class=3D= 'UIFormInputSet']/table[@class=3D'UIFormGrid']/tbody/tr[2]/td[2]/inputPOR_14_01_044-node
waitForElementPresent//div[@class=3D'UIFormTabPane']/div[@class=3D'UITabPane']//div[@class= =3D'TabsContainer']/div[2]//div[@class=3D'MiddleTab']
clickAt//div[@class=3D'UIFormTabPane']/div[@class=3D'UITabPane']//div[@class= =3D'TabsContainer']/div[2]//div[@class=3D'MiddleTab']
waitForElementPresentlink=3DSearch and Select Page
clickAtlink=3DSearch and Select Page
waitForElementPresent//div[@id=3D'SelectPage']//div[@id=3D'UIVirtualList']//table[@class= =3D'UIGrid']/tbody[@class=3D'FeedBox']/tr[1]/td[5]/div[@class=3D'ActionCont= ainer']/img[@class=3D'SelectPageIcon']
clickAt//div[@id=3D'SelectPage']//div[@id=3D'UIVirtualList']//table[@class= =3D'UIGrid']/tbody[@class=3D'FeedBox']/tr[1]/td[5]/div[@class=3D'ActionCont= ainer']/img[@class=3D'SelectPageIcon']
waitForElementPresentlink=3DSave
clickAtlink=3DSave
waitForElementPresentlink=3DSave
clickAtlink=3DSave
clickAndWaitlink=3DSign out
echo--Login by new user
waitForElementPresentlink=3DSign in
clickAtlink=3DSign in
waitForElementPresentusername
typeusernamePOR_14_01_044-user
typepasswordPOR_14_01_044-user
clickAndWait//div[@id=3D'UIPortalLoginFormAction']/div/div/div/a
echo--View created node
clickAt//div[@id=3D'PortalNavigationTopContainer']/div[3]/div/div/div/div/di= v/div/a
echo--Check Add new page by user have not right
waitForTextxpath=3D//div[@class=3D'UIRowContainer']/div[3]//a[@class=3D'Selected= ']POR_14_01_044-node
verifyTextNotPresentAdd New Page
echo--Delete new user
waitForElementPresentlink=3DSign out
clickAtlink=3DSign out
waitForElementPresentlink=3DSign in
clickAtlink=3DSign in
waitForElementPresent//form[@id=3D'UIPortalComponentLogin']//table[@class=3D'UIFormGrid']/= tbody/tr[@class=3D'UserNameField']/td/input
type//form[@id=3D'UIPortalComponentLogin']//table[@class=3D'UIFormGrid']/= tbody/tr[@class=3D'UserNameField']/td/inputroot
waitForElementPresent//form[@id=3D'UIPortalComponentLogin']//table[@class=3D'UIFormGrid']/= tbody/tr[@id=3D'UIPortalLoginFormControl']/td/input
type//form[@id=3D'UIPortalComponentLogin']//table[@class=3D'UIFormGrid']/= tbody/tr[@id=3D'UIPortalLoginFormControl']/td/inputgtn
clickAt//div[@id=3D'UIPortalLoginFormAction']/div/div/div/a
waitForElementPresentlink=3DUsers and groups management
clickAtlink=3DUsers and groups management
waitForElementPresent//img[@alt=3D'DeleteUser']
clickAt//img[@alt=3D'DeleteUser']
assertConfirmationAre you sure you want to delete POR_14_01_044-user user?
verifyTextNotPresentPOR_14_01_044-user
echo--Delete node
waitForElementPresentlink=3DSite
clickAtlink=3DSite
waitForElementPresentlink=3DEdit Navigation
clickAtlink=3DEdit Navigation
waitForElementPresent//div[@id=3D'UINavigationManagement']//a[@title=3D'POR_14_01_044-node= ']
componentExoContextMenu//div[@id=3D'UINavigationManagement']//a[@title=3D'POR_14_01_044-node= ']
waitForElementPresentlink=3DDelete Node
clickAtlink=3DDelete Node
assertConfirmationAre you sure you want to delete this node?
waitForElementPresentlink=3DSave
clickAtlink=3DSave
waitForElementNotPresent//div[@id=3D'UINavigationManagement']//a[@title=3D'POR_14_01_044-node= ']
verifyElementNotPresent//div[@id=3D'UINavigationManagement']//a[@title=3D'POR_14_01_044-node= ']
waitForElementPresentlink=3DEdit Navigation
clickAtlink=3DEdit Navigation
echo--Delete page
clickAtlink=3DSite
waitForElementPresentlink=3DPage Management
clickAtlink=3DPage Management
waitForElementPresent//img[@title=3D'Delete Page']
clickAt//img[@title=3D'Delete Page']
assertConfirmationDo you want to delete this page?
waitForElementNotPresentPOR_14_01_044-page
verifyTextNotPresentPOR_14_01_044-page
clickAtlink=3DSign out
+ + Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform= /portal/selenium/design/Test_POR_25_04_004_CopyPasteNodeToSamePlace.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po= rtal/selenium/design/Test_POR_25_04_004_CopyPasteNodeToSamePlace.html = (rev 0) +++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po= rtal/selenium/design/Test_POR_25_04_004_CopyPasteNodeToSamePlace.html 2010-= 04-08 10:24:32 UTC (rev 2531) @@ -0,0 +1,162 @@ + + + + + + +Test_POR_25_04_003_CopyPasteNodeToSamePlace + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test_POR_25_04_003_CopyPasteNodeToSame= Place
open/portal/public/classic/
echo--Login portal--
waitForElementPresentlink=3DSign in
clickAtlink=3DSign in
typeusernameroot
typepasswordgtn
clickAt//div[@id=3D'UIPortalLoginFormAction']/div/div/div/a
echo--Open Navigation Management pop-up --
waitForElementPresentlink=3DSite
clickAtlink=3DSite
waitForElementPresentlink=3DEdit Navigation
clickAtlink=3DEdit Navigation
echo--Copy node--
componentExoContextMenuxpath=3D//div[@id=3D"UINavigationNodeSelector"]/div/div/div= /div[2]/div/div/div[6]//a
waitForElementPresentlink=3DCopy Node
clickAtlink=3DCopy Node
echo-- Paste node to same place--
componentExoContextMenuxpath=3D//div[@id=3D"UINavigationNodeSelector"]/div/div/div= /div[2]/div/div/div[6]//a
waitForElementPresent//div[@id=3D'NavigationNodePopupMenu']/div[@class=3D'UIContextMenuCon= tainer']/div[2]/div/div/div[7]//a
clickAt//div[@id=3D'NavigationNodePopupMenu']/div/div[2]/div/div/div[7]//a +
echo--Verify text Message--
verifyTextPresentThe source and the destination must be different.
waitForElementPresent//div[@id=3D'UIPortalApplication']//div[@class=3D'ExoMessageDecorator= ']//div[@class=3D'MiddleRightSideDecorator']//div[@class=3D'UIPopupMessages= ']/div[@class=3D'MessageActionBar']//a
clickAt//div[@id=3D'UIPortalApplication']//div[@class=3D'ExoMessageDecorator= ']//div[@class=3D'MiddleRightSideDecorator']//div[@class=3D'UIPopupMessages= ']/div[@class=3D'MessageActionBar']//a
waitForElementPresentlink=3DSave
clickAtlink=3DSave
echo-- Sign out--
waitForElementPresentlink=3DSign out
clickAtlink=3DSign out
+ + Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform= /portal/selenium/design/Test_POR_25_05_001_CutPasteNodeToSamePlace.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po= rtal/selenium/design/Test_POR_25_05_001_CutPasteNodeToSamePlace.html = (rev 0) +++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po= rtal/selenium/design/Test_POR_25_05_001_CutPasteNodeToSamePlace.html 2010-0= 4-08 10:24:32 UTC (rev 2531) @@ -0,0 +1,162 @@ + + + + + + +Test_POR_25_05_001_CutPasteNodeToSamePlace + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test_POR_25_05_001_CutPasteNodeToSameP= lace
open/portal/public/classic/
echo--Login portal--
waitForElementPresentlink=3DSign in
clickAtlink=3DSign in
typeusernameroot
typepasswordgtn
clickAt//div[@id=3D'UIPortalLoginFormAction']/div/div/div/a
echo--Open Navigation Management pop-up --
waitForElementPresentlink=3DSite
clickAtlink=3DSite
waitForElementPresentlink=3DEdit Navigation
clickAtlink=3DEdit Navigation
echo--Cut node--
componentExoContextMenuxpath=3D//div[@id=3D"UINavigationNodeSelector"]/div/div/div= /div[2]/div/div/div[6]//a
waitForElementPresentlink=3DCut Node
clickAtlink=3DCut Node
echo-- Paste node to same place--
componentExoContextMenuxpath=3D//div[@id=3D"UINavigationNodeSelector"]/div/div/div= /div[2]/div/div/div[6]//a
waitForElementPresent//div[@id=3D'NavigationNodePopupMenu']/div[@class=3D'UIContextMenuCon= tainer']/div[2]/div/div/div[7]//a
clickAt//div[@id=3D'NavigationNodePopupMenu']/div/div[2]/div/div/div[7]//a +
echo--Verify text Message--
verifyTextPresentThis node name already exists.
waitForElementPresent//div[@id=3D'UIPortalApplication']//div[@class=3D'ExoMessageDecorator= ']//div[@class=3D'MiddleRightSideDecorator']//div[@class=3D'UIPopupMessages= ']/div[@class=3D'MessageActionBar']//a
clickAt//div[@id=3D'UIPortalApplication']//div[@class=3D'ExoMessageDecorator= ']//div[@class=3D'MiddleRightSideDecorator']//div[@class=3D'UIPopupMessages= ']/div[@class=3D'MessageActionBar']//a
waitForElementPresentlink=3DSave
clickAtlink=3DSave
echo-- Sign out--
waitForElementPresentlink=3DSign out
clickAtlink=3DSign out
+ + --===============4534234768896756539==--