[portal-commits] JBoss Portal SVN: r12227 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
portal-commits at lists.jboss.org
portal-commits at lists.jboss.org
Mon Nov 3 07:51:01 EST 2008
Author: vrockai
Date: 2008-11-03 07:51:00 -0500 (Mon, 03 Nov 2008)
New Revision: 12227
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
taking screenshots from dashboard
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-03 10:49:59 UTC (rev 12226)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-03 12:51:00 UTC (rev 12227)
@@ -76,6 +76,7 @@
selenium.waitForPageToLoad(PAGE_LOAD);
}
+ selenium.captureScreenshot("2.jpg");
Assert.assertEquals(selenium.getSelectedLabel(SEL_THEME), "renaissance", "Previously selected theme other then expected.");
}
@@ -100,7 +101,7 @@
selenium.select(SEL_PAGE, "label=DashTestPage");
selenium.waitForPageToLoad(PAGE_LOAD);
}
-
+ selenium.captureScreenshot("3.jpg");
Assert.assertEquals(selenium.getSelectedLabel(SEL_LAYOUT), "generic", "Previously selected layout other then expected.");
}
@@ -120,7 +121,8 @@
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.click("link=DashTestPage");
selenium.waitForPageToLoad(PAGE_LOAD);
-
+
+ selenium.captureScreenshot("1.jpg");
Assert.assertTrue(selenium.isTextPresent("Current users"));
Assert.assertTrue(selenium.isTextPresent("Among them: * logged-in"));
Assert.assertTrue(selenium.isTextPresent("[admin]"));
More information about the portal-commits
mailing list