From do-not-reply at jboss.org Wed Oct 6 00:46:51 2010 Content-Type: multipart/mixed; boundary="===============3420711581305882042==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: gatein-commits at lists.jboss.org Subject: [gatein-commits] gatein SVN: r4516 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium. Date: Wed, 06 Oct 2010 00:46:50 -0400 Message-ID: <201010060446.o964koZG002334@svn01.web.mwc.hst.phx2.redhat.com> --===============3420711581305882042== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: hangnguyen Date: 2010-10-06 00:46:50 -0400 (Wed, 06 Oct 2010) New Revision: 4516 Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/por= tal/selenium/Test_Smoke_PRL_BasicFunctionOnGateIn.html Log: TESTVN-1684 - Selenium scripts for smoke tests on GateIn Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform= /portal/selenium/Test_Smoke_PRL_BasicFunctionOnGateIn.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_Smoke_PRL_BasicFunctionOnGateIn.html = (rev 0) +++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/po= rtal/selenium/Test_Smoke_PRL_BasicFunctionOnGateIn.html 2010-10-06 04:46:50= UTC (rev 4516) @@ -0,0 +1,852 @@ + + + + + + +Test_Smoke_PRL_BasicFunctionOnGateIn + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test_Smoke_PRL_BasicFunctionOnGateIn
open/portal/public/classic/
clicklink=3DSign in
typeusernameroot
typepasswordgtn
clickAndWait//div[@id=3D'UIPortalLoginFormAction']/div/div/div/a
echo-- Add new user --
clickAndWaitlink=3DNew Staff
waitForElementPresentusername
typeusernameSmoke_GateIn_01
typepasswordSmoke_GateIn_01
typeConfirmpasswordSmoke_GateIn_01
typefirstNameSmoke_GateIn_01
typelastNameSmoke_GateIn_01
typeemailSmoke_GateIn_01(a)gmail.com
echo-- Choose User Profile --
waitForElementPresent//div[@id=3D'UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/di= v/div[2]/div/div/div/div
click//div[@id=3D'UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/di= v/div[2]/div/div/div/div
waitForElementPresentuser.language
selectuser.languagelabel=3DEnglish
waitForElementPresentlink=3DSave
clicklink=3DSave
waitForTextPresentYou have registered a new account.
verifyTextPresentYou have registered a new account.
waitForElementPresent//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/= div/div/div/div/a
click//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/= div/div/div/div/a
echo-- Choose Users and group management --
clickAndWaitlink=3DUsers and groups management
echo-- Choose Group Management --
waitForElementPresent//div[@id=3D'UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/di= v/div/a[2]/div[1]
click//div[@id=3D'UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/di= v/div/a[2]/div[1]
echo-- Add new group --
waitForElementPresent//div[@id=3D'UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[= 1]/div[1]/a[3]
click//div[@id=3D'UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[= 1]/div[1]/a[3]
waitForElementPresentgroupName
typegroupNameSmoke_GateIn_01
typelabelSmoke_GateIn_01
typedescriptionSmoke_GateIn_01
waitForElementPresentlink=3DSave
clicklink=3DSave
echo-- Add user into group --
waitForElementPresentusername
typeusernameSmoke_GateIn_01
selectmembershiplabel=3Dmanager
waitForElementPresentlink=3DSave
clicklink=3DSave
echo-- Add new group navigation --
clickAndWaitlink=3DGroup
waitForElementPresentlink=3DAdd Navigation
clicklink=3DAdd Navigation
waitForElementPresent//div[@id=3D'UIAddGroupNavigationGrid']/table[10]/tbody/tr/td[2]/a +
click//div[@id=3D'UIAddGroupNavigationGrid']/table[10]/tbody/tr/td[2]/a +
waitForElementPresentlink=3DCancel
clicklink=3DCancel
waitForTextPresentSmoke_GateIn_01
verifyTextPresentSmoke_GateIn_01
echo-- Go to Manage Page --
clickAndWaitlink=3DPage Management
echo-- Add new page for group --
waitForElementPresent//div[@id=3D'UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div= /a
click//div[@id=3D'UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div= /a
waitForElementPresentownerType
selectownerTypelabel=3Dgroup
waitForElementPresentname
typenameSmoke_GateIn_01
typetitleSmoke_GateIn_01
echo-- Choose Page Layout --
waitForElementPresent//div[@id=3D'UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div= /div/div/div/div[2]/div/div/div/div
click//div[@id=3D'UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div= /div/div/div/div[2]/div/div/div/div
echo-- Choose Permission Setting --
waitForElementPresent//div[@id=3D'UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div= /div/div/div/div[3]/div/div/div/div
click//div[@id=3D'UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div= /div/div/div/div[3]/div/div/div/div
echo-- Access Permission Setting --
waitForTextPresentAccess Permission Setting
verifyTextPresentAccess Permission Setting
echo-- Edit Permission Setting --
waitForElementPresentlink=3DEdit Permission Setting
clicklink=3DEdit Permission Setting
waitForTextPresentEdit Permission Setting
verifyTextPresentEdit Permission Setting
waitForElementPresentlink=3DSave
clicklink=3DSave
echo-- Add new node link to new page --
waitForElementPresentlink=3DGroup
clickAndWaitlink=3DGroup
waitForElementPresentlink=3DEdit Navigation
clicklink=3DEdit Navigation
waitForElementPresentlink=3DAdd Node
clicklink=3DAdd Node
waitForElementPresentname
typenameSmoke_GateIn_01
typelabelSmoke_GateIn_01
echo-- Choose Page Selector --
waitForElementPresent//div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/d= iv[2]/div/div/div/div
click//div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/d= iv[2]/div/div/div/div
waitForElementPresentlink=3DSearch and Select Page
clicklink=3DSearch and Select Page
waitForElementPresent//img[@title=3D'Select Page']
click//img[@title=3D'Select Page']
waitForElementPresentlink=3DSave
clicklink=3DSave
waitForElementPresentlink=3DSave
clicklink=3DSave
echo-- View new node --
waitForElementPresentlink=3DSmoke_GateIn_01
clicklink=3DSmoke_GateIn_01
clickAndWaitlink=3DSign out
echo-- Login by new user --
open/portal/public/classic/
clicklink=3DSign in
waitForElementPresentusername
typeusernameSmoke_GateIn_01
typepasswordSmoke_GateIn_01
clickAndWait//div[@id=3D'UIPortalLoginFormAction']/div/div/div/a
echo-- Go to Group --
clickAndWaitlink=3DGroup
waitForElementPresentlink=3DEdit Navigation
clicklink=3DEdit Navigation
echo-- Delete node --
waitForElementPresent//div[@id=3D'UINavigationNodeSelector']/div/div/div/div[2]/div/div/di= v[2]/div[1]/a
click//div[@id=3D'UINavigationNodeSelector']/div/div/div/div[2]/div/div/di= v[2]/div[1]/a
waitForElementPresent//a[@class=3D'NodeIcon DefaultPageIcon NodeSelected' and @title=3D'Sm= oke_GateIn_01']
mouseDownRight//a[@class=3D'NodeIcon DefaultPageIcon NodeSelected' and @title=3D'Sm= oke_GateIn_01']
waitForElementPresentlink=3DDelete Node
clicklink=3DDelete Node
waitForConfirmationPresent
assertConfirmationAre you sure you want to delete this node?
waitForElementPresentlink=3DSave
clicklink=3DSave
clickAndWaitlink=3DSign out
echo-- Login by new user --
clicklink=3DSign in
waitForElementPresentusername
typeusernameroot
typepasswordgtn
clickAndWait//div[@id=3D'UIPortalLoginFormAction']/div/div/div
echo-- Go to Users and group management --
waitForElementPresentlink=3DUsers and groups management
clickAndWaitlink=3DUsers and groups management
echo-- Search new user --
waitForElementPresentsearchTerm
typesearchTermSmoke_GateIn_01
waitForElementPresent//form[@id=3D'UISearchForm']/div[2]/a
click//form[@id=3D'UISearchForm']/div[2]/a
echo-- Delete new user --
waitForElementPresent//img[@alt=3D'DeleteUser']
click//img[@alt=3D'DeleteUser']
assertConfirmationAre you sure you want to delete Smoke_GateIn_01 user?
waitForTextPresentNo result found.
verifyTextPresentNo result found.
waitForElementPresent//div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/= div/div/div/div/a
click//div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/= div/div/div/div/a
echo-- Choose Group Management --
waitForElementPresent//div[@id=3D'UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/di= v/div/a[2]/div[1]
click//div[@id=3D'UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/di= v/div/a[2]/div[1]
echo-- Delete new group --
waitForElementPresentlink=3DSmoke_GateIn_01
clicklink=3DSmoke_GateIn_01
waitForElementPresent//div[@id=3D'UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[= 1]/div[1]/a[1]
click//div[@id=3D'UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[= 1]/div[1]/a[1]
waitForConfirmationPresent
assertConfirmationAre you sure you want to delete this group?
echo-- Check group navigation after delete group --
clickAndWaitlink=3DGroup
waitForTextNotPresentSmoke_GateIn_01
verifyTextNotPresentSmoke_GateIn_01
waitForElementPresentlink=3DSign out
clickAndWaitlink=3DSign out
+ + --===============3420711581305882042==--