From portal-commits at lists.jboss.org Tue Apr 21 07:05:15 2009 Content-Type: multipart/mixed; boundary="===============8914626386842276142==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r13251 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium. Date: Tue, 21 Apr 2009 07:05:15 -0400 Message-ID: --===============8914626386842276142== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrockai Date: 2009-04-21 07:05:14 -0400 (Tue, 21 Apr 2009) New Revision: 13251 Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal= /test/selenium/EndToEndBeaPortlet.java Log: [JBPORTAL-2314] [selenium] - clicking on a final bea link Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss= /portal/test/selenium/EndToEndBeaPortlet.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/porta= l/test/selenium/EndToEndBeaPortlet.java 2009-04-21 10:59:41 UTC (rev 13250) +++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/porta= l/test/selenium/EndToEndBeaPortlet.java 2009-04-21 11:05:14 UTC (rev 13251) @@ -15,12 +15,16 @@ * = * @author Viliam Rockai */ -//TODO some refactoring of class fields needed +// TODO some refactoring of class fields needed @Test(groups =3D { "end2end" }, enabled =3D true, description =3D "Creatin= g of new portal with content.") public class EndToEndBeaPortlet extends JBossPortalSeleniumTestCase { + + /** prefix for locator properties =3D e2e.wsrp. */ public static String casePfx =3D "e2e.wsrp."; = + private final String LNK_BEA_PREV =3D getProp(casePfx + "lnk.bea.next", "= link=3DGoto previous page"); + private final String LNK_BEA_NEXT =3D getProp(casePfx + "lnk.bea.prev", "= link=3DClick here to goto next page"); private final String SUB_VIEW_PORTLETS =3D "//input[contains(@id,'definit= ion-form:view-portlets')]"; private final String SEL_CONS_TYPE =3D "//select[contains(@id,'definition= -form:menu')]"; = @@ -79,7 +83,10 @@ * then added to page "default" to portal "default" similar way as in * {@link AdminPortalTestCase#testCreateWindow()}. The final assertion is * made in the "default" page of "default" portal. The appearance of stri= ng - * specific for bea portlet is asserted. + * specific for bea portlet is asserted. The link + * "Click here to goto next page." in Bea portlet is then clicked, the te= xt + * "Welcome back!" is asserted. At the end the link "Goto previous page."= is + * clicked and the previous text is asserted. */ // TODO - click on a link in BEA applet and assert @Test(enabled =3D true, description =3D "Creating a standard BEA portlet.= ") @@ -101,6 +108,12 @@ Assert.assertTrue(selenium.isTextPresent("1BeaPorWindow")); Assert.assertTrue(selenium.isTextPresent("Welcome to WebLogic Portal WSR= P Demo.")); = + selenium.click(LNK_BEA_NEXT); + selenium.waitForPageToLoad(PAGE_LOAD); + Assert.assertTrue(selenium.isTextPresent("Welcome back!")); + selenium.click(LNK_BEA_PREV); + selenium.waitForPageToLoad(PAGE_LOAD); + } = private void createConsumer(String consumerName) { --===============8914626386842276142==--