Author: vrockai
Date: 2008-11-04 05:56:48 -0500 (Tue, 04 Nov 2008)
New Revision: 12243
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
screenshot problem try1
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:41:57 UTC (rev 12242)
+++
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)
@@ -119,13 +119,16 @@
@Test(enabled = true, dependsOnMethods = { "testCreatePage" })
public void testAddPortlet() {
-
+ selenium.setSpeed("3000");
selenium.click(LNK_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
+
selenium.windowMaximize();
selenium.captureScreenshot("1x.jpg");
+
selenium.windowMaximize();
selenium.captureScreenshot("1x1.jpg");
+
selenium.click(LNK_CONFIGURE_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.windowMaximize();
@@ -152,6 +155,7 @@
Assert.assertTrue(selenium.isTextPresent("Current users"));
Assert.assertTrue(selenium.isTextPresent("Among them: * logged-in"));
Assert.assertTrue(selenium.isTextPresent("[admin]"));
+ selenium.setSpeed("0");
}
@Test(enabled = true, dependsOnMethods = {
"testCreatePage","testAddPortlet" })
Show replies by date