JBoss Portal SVN: r12254 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2008-11-06 09:00:10 -0500 (Thu, 06 Nov 2008)
New Revision: 12254
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/JBossPortalSeleniumTestCase.java
Log:
even more debug3
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/JBossPortalSeleniumTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/JBossPortalSeleniumTestCase.java 2008-11-06 12:06:54 UTC (rev 12253)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/JBossPortalSeleniumTestCase.java 2008-11-06 14:00:10 UTC (rev 12254)
@@ -145,6 +145,7 @@
protected void waitForElement(String locator) {
for (int second = 0;; second++) {
if (second >= ELEM_TIMEOUT) {
+ selenium.captureScreenshot("err.jpg");
Assert.fail("Element " + locator + " not found.");
}
try {
15 years, 6 months
JBoss Portal SVN: r12253 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2008-11-06 07:06:54 -0500 (Thu, 06 Nov 2008)
New Revision: 12253
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
even more debug2
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-06 12:06:20 UTC (rev 12252)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-06 12:06:54 UTC (rev 12253)
@@ -100,7 +100,7 @@
selenium.captureScreenshot("3x1.jpg");
selenium.select(SEL_LAYOUT, "label=generic");
selenium.captureScreenshot("3x2.jpg");
- selenium.click(SUB_LAYOUTSEL)
+ selenium.click(SUB_LAYOUTSEL);
selenium.captureScreenshot("3x3.jpg");
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.captureScreenshot("3x4.jpg");
15 years, 6 months
JBoss Portal SVN: r12252 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2008-11-06 07:06:20 -0500 (Thu, 06 Nov 2008)
New Revision: 12252
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
even more debug
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-06 11:49:44 UTC (rev 12251)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-06 12:06:20 UTC (rev 12252)
@@ -93,15 +93,18 @@
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.click(LNK_CONFIGURE_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
-
+ selenium.windowMaximize();
selectIfNotSelected(SEL_PAGE,"DashTestPage");
for (String s: selenium.getSelectOptions(SEL_LAYOUT))
System.out.println("LABEL!:"+s);
+ selenium.captureScreenshot("3x1.jpg");
selenium.select(SEL_LAYOUT, "label=generic");
- selenium.click(SUB_LAYOUTSEL);
+ selenium.captureScreenshot("3x2.jpg");
+ selenium.click(SUB_LAYOUTSEL)
+ selenium.captureScreenshot("3x3.jpg");
selenium.waitForPageToLoad(PAGE_LOAD);
+ selenium.captureScreenshot("3x4.jpg");
- selenium.windowMaximize();
selenium.captureScreenshot("3x.jpg");
selenium.click(LNK_DASHBOARD);
@@ -133,8 +136,9 @@
selenium.captureScreenshot("1x21.jpg");
selectIfNotSelected(SEL_PAGE,"DashTestPage");
selenium.click("link=Who's online portlet");
- selenium.captureScreenshot("1x22.jpg");
-
+ selenium.captureScreenshot("1x221.jpg");
+ selenium.waitForPageToLoad(PAGE_LOAD);
+ selenium.captureScreenshot("1x222.jpg");
waitForElement("portlet-editor-title");
//selenium.waitForPageToLoad(PAGE_LOAD);
selenium.windowMaximize();
15 years, 6 months
JBoss Portal SVN: r12250 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2008-11-06 05:47:06 -0500 (Thu, 06 Nov 2008)
New Revision: 12250
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/JBossPortalSeleniumTestCase.java
Log:
longer timeout
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-05 16:46:19 UTC (rev 12249)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-06 10:47:06 UTC (rev 12250)
@@ -134,7 +134,7 @@
selectIfNotSelected(SEL_PAGE,"DashTestPage");
selenium.click("link=Who's online portlet");
selenium.captureScreenshot("1x22.jpg");
-
+
waitForElement("portlet-editor-title");
//selenium.waitForPageToLoad(PAGE_LOAD);
selenium.windowMaximize();
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/JBossPortalSeleniumTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/JBossPortalSeleniumTestCase.java 2008-11-05 16:46:19 UTC (rev 12249)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/JBossPortalSeleniumTestCase.java 2008-11-06 10:47:06 UTC (rev 12250)
@@ -24,7 +24,7 @@
protected static final String PAGE_LOAD = "900000";
// Element timeout in seconds
- protected static final int ELEM_TIMEOUT = 60;
+ protected static final int ELEM_TIMEOUT = 120;
@BeforeClass
public void setupChromeForLogin() throws Exception {
15 years, 6 months
JBoss Portal SVN: r12249 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2008-11-05 11:46:19 -0500 (Wed, 05 Nov 2008)
New Revision: 12249
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
dashboard debug 3
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-05 13:54:56 UTC (rev 12248)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-05 16:46:19 UTC (rev 12249)
@@ -63,7 +63,7 @@
selectIfNotSelected(SEL_PAGE,"DashTestPage");
- for (String s: selenium.getSelectedLabels(SEL_THEME))
+ for (String s: selenium.getSelectOptions(SEL_THEME))
System.out.println("LABEL!:"+s);
selenium.select(SEL_THEME, "label=renaissance");
@@ -78,14 +78,11 @@
selenium.click(LNK_CONFIGURE_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
- if (!selenium.getSelectedLabel(SEL_PAGE).equals("DashTestPage")) {
- selenium.select(SEL_PAGE, "label=DashTestPage");
- selenium.waitForPageToLoad(PAGE_LOAD);
- }
+ selectIfNotSelected(SEL_PAGE,"DashTestPage");
selenium.windowMaximize();
selenium.captureScreenshot("2.jpg");
- for (String s: selenium.getSelectedLabels(SEL_THEME))
+ for (String s: selenium.getSelectOptions(SEL_THEME))
System.out.println("LABEL!:"+s);
Assert.assertEquals(selenium.getSelectedLabel(SEL_THEME), "renaissance", "Previously selected theme other then expected.");
}
@@ -98,7 +95,7 @@
selenium.waitForPageToLoad(PAGE_LOAD);
selectIfNotSelected(SEL_PAGE,"DashTestPage");
- for (String s: selenium.getSelectedLabels(SEL_LAYOUT))
+ for (String s: selenium.getSelectOptions(SEL_LAYOUT))
System.out.println("LABEL!:"+s);
selenium.select(SEL_LAYOUT, "label=generic");
selenium.click(SUB_LAYOUTSEL);
@@ -112,14 +109,11 @@
selenium.click(LNK_CONFIGURE_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
- if (!selenium.getSelectedLabel(SEL_PAGE).equals("DashTestPage")) {
- selenium.select(SEL_PAGE, "label=DashTestPage");
- selenium.waitForPageToLoad(PAGE_LOAD);
- }
+ selectIfNotSelected(SEL_PAGE,"DashTestPage");
selenium.windowMaximize();
selenium.captureScreenshot("3.jpg");
- for (String s: selenium.getSelectedLabels(SEL_LAYOUT))
+ for (String s: selenium.getSelectOptions(SEL_LAYOUT))
System.out.println("LABEL!:"+s);
Assert.assertEquals(selenium.getSelectedLabel(SEL_LAYOUT), "generic", "Previously selected layout other then expected.");
}
15 years, 6 months
JBoss Portal SVN: r12248 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2008-11-05 08:54:56 -0500 (Wed, 05 Nov 2008)
New Revision: 12248
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
dashboard debug 2
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-05 11:28:52 UTC (rev 12247)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-05 13:54:56 UTC (rev 12248)
@@ -136,9 +136,11 @@
selenium.click(LNK_CONFIGURE_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.windowMaximize();
- selenium.captureScreenshot("1x2.jpg");
+ selenium.captureScreenshot("1x21.jpg");
selectIfNotSelected(SEL_PAGE,"DashTestPage");
selenium.click("link=Who's online portlet");
+ selenium.captureScreenshot("1x22.jpg");
+
waitForElement("portlet-editor-title");
//selenium.waitForPageToLoad(PAGE_LOAD);
selenium.windowMaximize();
15 years, 6 months
JBoss Portal SVN: r12247 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2008-11-05 06:28:52 -0500 (Wed, 05 Nov 2008)
New Revision: 12247
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
dashboard screen fix - max speed
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-05 11:27:36 UTC (rev 12246)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-05 11:28:52 UTC (rev 12247)
@@ -126,7 +126,7 @@
@Test(enabled = true, dependsOnMethods = { "testCreatePage" })
public void testAddPortlet() {
- selenium.setSpeed("3000");
+ //selenium.setSpeed("3000");
selenium.click(LNK_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
@@ -159,7 +159,7 @@
Assert.assertTrue(selenium.isTextPresent("Current users"));
Assert.assertTrue(selenium.isTextPresent("Among them: * logged-in"));
Assert.assertTrue(selenium.isTextPresent("[admin]"));
- selenium.setSpeed("0");
+ //selenium.setSpeed("0");
}
@Test(enabled = true, dependsOnMethods = { "testCreatePage","testAddPortlet" })
15 years, 6 months
JBoss Portal SVN: r12246 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2008-11-05 06:27:36 -0500 (Wed, 05 Nov 2008)
New Revision: 12246
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
dashboard screen fix - debug
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-05 10:59:41 UTC (rev 12245)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-05 11:27:36 UTC (rev 12246)
@@ -85,6 +85,8 @@
selenium.windowMaximize();
selenium.captureScreenshot("2.jpg");
+ for (String s: selenium.getSelectedLabels(SEL_THEME))
+ System.out.println("LABEL!:"+s);
Assert.assertEquals(selenium.getSelectedLabel(SEL_THEME), "renaissance", "Previously selected theme other then expected.");
}
@@ -96,7 +98,8 @@
selenium.waitForPageToLoad(PAGE_LOAD);
selectIfNotSelected(SEL_PAGE,"DashTestPage");
-
+ for (String s: selenium.getSelectedLabels(SEL_LAYOUT))
+ System.out.println("LABEL!:"+s);
selenium.select(SEL_LAYOUT, "label=generic");
selenium.click(SUB_LAYOUTSEL);
selenium.waitForPageToLoad(PAGE_LOAD);
@@ -116,7 +119,8 @@
selenium.windowMaximize();
selenium.captureScreenshot("3.jpg");
-
+ for (String s: selenium.getSelectedLabels(SEL_LAYOUT))
+ System.out.println("LABEL!:"+s);
Assert.assertEquals(selenium.getSelectedLabel(SEL_LAYOUT), "generic", "Previously selected layout other then expected.");
}
15 years, 6 months
JBoss Portal SVN: r12245 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2008-11-05 05:59:41 -0500 (Wed, 05 Nov 2008)
New Revision: 12245
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
dashboard screen fix
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-05 10:18:27 UTC (rev 12244)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-05 10:59:41 UTC (rev 12245)
@@ -63,6 +63,9 @@
selectIfNotSelected(SEL_PAGE,"DashTestPage");
+ for (String s: selenium.getSelectedLabels(SEL_THEME))
+ System.out.println("LABEL!:"+s);
+
selenium.select(SEL_THEME, "label=renaissance");
selenium.click(SUB_THEMESEL);
selenium.waitForPageToLoad(PAGE_LOAD);
@@ -124,9 +127,6 @@
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.windowMaximize();
- selenium.captureEntirePageScreenshot("m1x.jpg", "m2x.jpg");
-
- selenium.windowMaximize();
selenium.captureScreenshot("1x1.jpg");
selenium.click(LNK_CONFIGURE_DASHBOARD);
15 years, 6 months
JBoss Portal SVN: r12244 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2008-11-05 05:18:27 -0500 (Wed, 05 Nov 2008)
New Revision: 12244
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
dash test fix
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-04 10:56:48 UTC (rev 12243)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-05 10:18:27 UTC (rev 12244)
@@ -124,7 +124,7 @@
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.windowMaximize();
- selenium.captureScreenshot("1x.jpg");
+ selenium.captureEntirePageScreenshot("m1x.jpg", "m2x.jpg");
selenium.windowMaximize();
selenium.captureScreenshot("1x1.jpg");
15 years, 6 months