From do-not-reply at jboss.org Mon Aug 30 06:58:25 2010 Content-Type: multipart/mixed; boundary="===============5756858355176016658==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: gatein-commits at lists.jboss.org Subject: [gatein-commits] gatein SVN: r3967 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium. Date: Mon, 30 Aug 2010 06:58:25 -0400 Message-ID: <201008301058.o7UAwP1r007273@svn01.web.mwc.hst.phx2.redhat.com> --===============5756858355176016658== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: hangnguyen Date: 2010-08-30 06:58:25 -0400 (Mon, 30 Aug 2010) New Revision: 3967 Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/por= tal/selenium/Test_POR_12_02_021_CheckEditingContainerWithNewValidTitleWhile= EditCurrentPortal.html portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/por= tal/selenium/Test_POR_12_02_035_CheckWhenChangeTitleOfPortletWithvalidValue= WhileEditingPortal.html portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/por= tal/selenium/Test_POR_12_02_036_CheckWhenChangeTitleOfPortletWithInvalidVal= ueWhileEditingPortal.html portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/por= tal/selenium/Test_POR_12_02_037_CheckWhenChangeWidthHeightOfPortletWithVali= dValueWhileEditingPortal.html portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/por= tal/selenium/Test_POR_12_02_038_CheckWhenChangeWidthHeightOfPortletWithInVa= lidValueWhileEditingPortal.html Log: TESTVN-1006: Create new GateIn Selenium scripts Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform= /portal/selenium/Test_POR_12_02_021_CheckEditingContainerWithNewValidTitleW= hileEditCurrentPortal.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/Test_POR_12_02_021_CheckEditingContainerWithNewValidTitleWhil= eEditCurrentPortal.html (rev 0) +++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po= rtal/selenium/Test_POR_12_02_021_CheckEditingContainerWithNewValidTitleWhil= eEditCurrentPortal.html 2010-08-30 10:58:25 UTC (rev 3967) @@ -0,0 +1,197 @@ + + + + + + +Test_POR_12_02_021_CheckEditingContainerWithNewValidTitleWhileEditC= urrentPortal + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test_POR_12_02_021_CheckEditingContain= erWithNewValidTitleWhileEditCurrentPortal
open/portal/public/classic/
echo-- Check editing container with new valid title while edit current po= rtal--
windowMaximize
clicklink=3DSign in
waitForElementPresentusername
typeusernameroot
typepasswordgtn
clickAndWait//div[@id=3D'UIPortalLoginFormAction']/div/div/div/a
waitForElementPresentlink=3DEdit Layout
clicklink=3DEdit Layout
echo-- Choose Containers tab on Edit Inline Composer --
pause20000
waitForElementPresent//div[@id=3D'UIPortalComposerTab']/div[1]/div/div[2]/div/div/div/div<= /td> +
mouseOver//div[@id=3D'UIPortalComposerTab']/div[1]/div/div[2]/div/div/div/div<= /td> +
click//div[@id=3D'UIPortalComposerTab']/div[1]/div/div[2]/div/div/div/div<= /td> +
waitForElementPresent//div[@id=3D'oneRow']/div//div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/di= v[1]/div/div/div/div[1]/div
dragAndDropToObject//div[@id=3D'oneRow']/div//div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/di= v[1]/div/div/div/div[1]/div
waitForElementPresent//div/div/div[2]/div/div/div/div/div/div/div[2]Container
mouseOver//div/div/div[2]/div/div/div/div/div/div/div[2]Container
echo-- Click Edit container --
waitForElementPresent//div/div/div[2]/div/div/div/div/div/div/a[1]
click//div/div/div[2]/div/div/div/div/div/div/a[1]
waitForElementPresenttitle
typetitleTest_POR_12_02_021
waitForElementPresentlink=3DSave
clicklink=3DSave
mouseOver//div/div/div[2]/div/div/div/div/div/div/div[2]Test_POR_12_02_021
echo-- Delete container --
waitForElementPresent//div/div/div[2]/div/div/div/div/div/div/a[2]
click//div/div/div[2]/div/div/div/div/div/div/a[2]
waitForConfirmationPresent
assertConfirmationAre you sure you want to delete this Container?
waitForElementPresent//div[@id=3D'UIPortalComposer']/div[1]/div/div/div/a[2]
click//div[@id=3D'UIPortalComposer']/div[1]/div/div/div/a[2]
waitForElementPresentlink=3DSign out
clickAndWaitlink=3DSign out
+ + Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform= /portal/selenium/Test_POR_12_02_035_CheckWhenChangeTitleOfPortletWithvalidV= alueWhileEditingPortal.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/Test_POR_12_02_035_CheckWhenChangeTitleOfPortletWithvalidValu= eWhileEditingPortal.html (rev 0) +++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po= rtal/selenium/Test_POR_12_02_035_CheckWhenChangeTitleOfPortletWithvalidValu= eWhileEditingPortal.html 2010-08-30 10:58:25 UTC (rev 3967) @@ -0,0 +1,212 @@ + + + + + + +Test_POR_12_02_035_CheckWhenChangeTitleOfPortletWithvalidValueWhile= EditingPortal + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test_POR_12_02_035_CheckWhenChangeTitl= eOfPortletWithvalidValueWhileEditingPortal
open/portal/public/classic/
echo-- Check when change title of portlet with valid value while editing = portal--
windowMaximize
clicklink=3DSign in
waitForElementPresentusername
typeusernameroot
typepasswordgtn
clickAndWait//div[@id=3D'UIPortalLoginFormAction']/div/div/div/a
echo-- Edit layout's portal --
waitForElementPresentlink=3DEdit Layout
clicklink=3DEdit Layout
echo-- Edit portlet --
mouseOver//div/div/div[2]/div/div/div/div/div/div/div[2]Banner Portlet
waitForElementPresent//div/div/div[2]/div/div/div/div/div/div/a[1]
click//div/div/div[2]/div/div/div/div/div/div/a[1]
echo-- Choose Portlet Setting --
waitForElementPresent//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]= /div/div/div/div
click//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]= /div/div/div/div
echo-- Change current value of Title with new value --
waitForElementPresenttitle
typetitleTest_POR_12_02_035
waitForElementPresentlink=3DSave And Close
clicklink=3DSave And Close
mouseOver//div/div/div[2]/div/div/div/div/div/div/div[2]Test_POR_12_02_035
waitForElementPresent//div/div/div[2]/div/div/div/div/div/div/a[1]
click//div/div/div[2]/div/div/div/div/div/div/a[1]
echo-- Choose Portlet Setting --
waitForElementPresent//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]= /div/div/div/div
click//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]= /div/div/div/div
echo-- Return to defautl title--
waitForElementPresenttitle
typetitle
waitForElementPresentlink=3DSave And Close
clicklink=3DSave And Close
mouseOver//div/div/div[2]/div/div/div/div/div/div/div[2]Banner Portlet
waitForElementPresent//div[@id=3D'UIPortalComposer']/div[1]/div/div/div/a[2]
click//div[@id=3D'UIPortalComposer']/div[1]/div/div/div/a[2]
waitForElementPresentlink=3DSign out
clickAndWaitlink=3DSign out
+ + Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform= /portal/selenium/Test_POR_12_02_036_CheckWhenChangeTitleOfPortletWithInvali= dValueWhileEditingPortal.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/Test_POR_12_02_036_CheckWhenChangeTitleOfPortletWithInvalidVa= lueWhileEditingPortal.html (rev 0) +++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po= rtal/selenium/Test_POR_12_02_036_CheckWhenChangeTitleOfPortletWithInvalidVa= lueWhileEditingPortal.html 2010-08-30 10:58:25 UTC (rev 3967) @@ -0,0 +1,227 @@ + + + + + + +Test_POR_12_02_036_CheckWhenChangeTitleOfPortletWithInvalidValueWhi= leEditingPortal + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test_POR_12_02_036_CheckWhenChangeTitl= eOfPortletWithInvalidValueWhileEditingPortal
open/portal/public/classic/
echo-- Check when change title of portlet with invalid value while editin= g portal --
windowMaximize
clicklink=3DSign in
waitForElementPresentusername
typeusernameroot
typepasswordgtn
clickAndWait//div[@id=3D'UIPortalLoginFormAction']/div/div/div/a
echo-- Edit layout's portal --
waitForElementPresentlink=3DEdit Layout
clicklink=3DEdit Layout
echo-- Edit portlet --
mouseOver//div/div/div[2]/div/div/div/div/div/div/div[2]Banner Portlet
waitForElementPresent//div/div/div[2]/div/div/div/div/div/div/a[1]
click//div/div/div[2]/div/div/div/div/div/div/a[1]
echo-- Choose Portlet Setting --
waitForElementPresent//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]= /div/div/div/div
click//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]= /div/div/div/div
echo-- Change current value of Title with new value less than 3 chars-- +
waitForElementPresenttitle
typetitlePO
waitForElementPresentlink=3DSave And Close
clicklink=3DSave And Close
waitForTextPresentThe length of the text in field "Portlet Title :" must be b= etween "3" and "60" characters.
verifyTextPresentThe length of the text in field "Portlet Title :" must be b= etween "3" and "60" characters.
waitForElementPresent//div[3]/div/table/tbody/tr/td/div/div/div/div
click//div[3]/div/table/tbody/tr/td/div/div/div/div
echo-- Change current value of Title with new value over 60 characters --=
waitForElementPresenttitle
typetitleTest_POR_12_02_036 Test_POR_12_02_036 Test_POR_12_02_036 Test_POR_12_= 02_036 Test_POR_12_02_036 Test_POR_12_02_036 Test_POR_12_02_036 Test_POR_12= _02_036
waitForElementPresentlink=3DSave And Close
clicklink=3DSave And Close
waitForTextPresentThe length of the text in field "Portlet Title :" must be b= etween "3" and "60" characters.
verifyTextPresentThe length of the text in field "Portlet Title :" must be b= etween "3" and "60" characters.
waitForElementPresentlink=3DOK
clicklink=3DOK
waitForElementPresentClose
clickClose
waitForElementPresent//div[@id=3D'UIPortalComposer']/div[1]/div/div/div/a[2]
click//div[@id=3D'UIPortalComposer']/div[1]/div/div/div/a[2]
waitForElementPresentlink=3DSign out
clickAndWaitlink=3DSign out
+ + Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform= /portal/selenium/Test_POR_12_02_037_CheckWhenChangeWidthHeightOfPortletWith= ValidValueWhileEditingPortal.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/Test_POR_12_02_037_CheckWhenChangeWidthHeightOfPortletWithVal= idValueWhileEditingPortal.html (rev 0) +++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po= rtal/selenium/Test_POR_12_02_037_CheckWhenChangeWidthHeightOfPortletWithVal= idValueWhileEditingPortal.html 2010-08-30 10:58:25 UTC (rev 3967) @@ -0,0 +1,247 @@ + + + + + + +Test_POR_12_02_037_CheckWhenChangeWidthHeightOfPortletWithValidValu= eWhileEditingPortal + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test_POR_12_02_037_CheckWhenChangeWidt= hHeightOfPortletWithValidValueWhileEditingPortal
open/portal/public/classic/
echo-- Check when change width/height of portlet with valid value while e= diting portal--
windowMaximize
clicklink=3DSign in
waitForElementPresentusername
typeusernameroot
typepasswordgtn
clickAndWait//div[@id=3D'UIPortalLoginFormAction']/div/div/div/a
echo-- Edit layout's portal --
waitForElementPresentlink=3DEdit Layout
clicklink=3DEdit Layout
echo-- Edit portlet --
mouseOver//div/div/div[2]/div/div/div/div/div/div/div[2]Banner Portlet
waitForElementPresent//div/div/div[2]/div/div/div/div/div/div/a[1]
click//div/div/div[2]/div/div/div/div/div/div/a[1]
waitForElementPresent//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]= /div/div/div/div
click//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]= /div/div/div/div
waitForElementPresentwidth
typewidth300px
typeheight500px
waitForElementPresentlink=3DSave And Close
clicklink=3DSave And Close
waitForElementPresent//div[@id=3D'UIPortalComposer']/div[3]/div/div/div[1]/table/tbody/tr/= td/div[2]/div/div/div/div
click//div[@id=3D'UIPortalComposer']/div[3]/div/div/div[1]/table/tbody/tr/= td/div[2]/div/div/div/div
waitForText//div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/di= v[1]/div/div[2]/div/div/div[1]
echo-- View after change width/height of portlet --
waitForElementPresentlink=3DSwitch View Mode
clicklink=3DSwitch View Mode
echo-- Check when change width/height of portlet with blank while editing= portal--
mouseOver//div/div/div[2]/div/div/div/div/div/div/div[2]Banner Portlet
waitForElementPresent//div/div/div[2]/div/div/div/div/div/div/a[1]
click//div/div/div[2]/div/div/div/div/div/div/a[1]
waitForElementPresent//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]= /div/div/div/div
click//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]= /div/div/div/div
waitForElementPresentwidth
typewidth
typeheight
waitForElementPresentlink=3DSave And Close
clicklink=3DSave And Close
echo-- view when change width/height of portlet with blank --
waitForElementPresentlink=3DSwitch View Mode
clicklink=3DSwitch View Mode
waitForElementPresent//div[@id=3D'UIPortalComposer']/div[1]/div/div/div/a[2]
click//div[@id=3D'UIPortalComposer']/div[1]/div/div/div/a[2]
waitForElementPresentlink=3DSign out
clickAndWaitlink=3DSign out
+ + Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform= /portal/selenium/Test_POR_12_02_038_CheckWhenChangeWidthHeightOfPortletWith= InValidValueWhileEditingPortal.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/Test_POR_12_02_038_CheckWhenChangeWidthHeightOfPortletWithInV= alidValueWhileEditingPortal.html (rev 0) +++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po= rtal/selenium/Test_POR_12_02_038_CheckWhenChangeWidthHeightOfPortletWithInV= alidValueWhileEditingPortal.html 2010-08-30 10:58:25 UTC (rev 3967) @@ -0,0 +1,197 @@ + + + + + + +Test_POR_12_02_038_CheckWhenChangeWidthHeightOfPortletWithInValidVa= lueWhileEditingPortal + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test_POR_12_02_038_CheckWhenChangeWidt= hHeightOfPortletWithInValidValueWhileEditingPortal
open/portal/public/classic/
echo-- Check when change width/height of portlet with invalid value while= editing portal--
windowMaximize
clicklink=3DSign in
waitForElementPresentusername
typeusernameroot
typepasswordgtn
clickAndWait//div[@id=3D'UIPortalLoginFormAction']/div/div/div/a
echo-- Edit layout's portal --
waitForElementPresentlink=3DEdit Layout
clicklink=3DEdit Layout
echo-- Edit portlet --
mouseOver//div/div/div[2]/div/div/div/div/div/div/div[2]Banner Portlet
waitForElementPresent//div/div/div[2]/div/div/div/div/div/div/a[1]
click//div/div/div[2]/div/div/div/div/div/div/a[1]
echo-- Portlet Setting --
waitForElementPresent//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]= /div/div/div/div
click//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]= /div/div/div/div
echo-- Change current value of Width/height with invalid value (number no= have with =E2=80=9Cpx=E2=80=9D) --
waitForElementPresentwidth
typewidth300
typeheight500
waitForElementPresentlink=3DSave And Close
clicklink=3DSave And Close
waitForTextPresentYou must enter a pixel value in field "Width:".
verifyTextPresentYou must enter a pixel value in field "Width:".
waitForTextPresentYou must enter a pixel value in field "Height:".
verifyTextPresentYou must enter a pixel value in field "Height:".
waitForElementPresent//div[3]/div/table/tbody/tr/td/div/div/div/div
click//div[3]/div/table/tbody/tr/td/div/div/div/div
waitForElementPresentClose
clickClose
waitForElementPresent//div[@id=3D'UIPortalComposer']/div[1]/div/div/div/a[2]
click//div[@id=3D'UIPortalComposer']/div[1]/div/div/div/a[2]
waitForElementPresentlink=3DSign out
clickAndWaitlink=3DSign out
+ + --===============5756858355176016658==--