JBoss Portal SVN: r12233 - 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-03 09:48:37 -0500 (Mon, 03 Nov 2008)
New Revision: 12233
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
plenty of screenshots
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 14:29:34 UTC (rev 12232)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-03 14:48:37 UTC (rev 12233)
@@ -122,16 +122,23 @@
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();
+ selenium.captureScreenshot("1x2.jpg");
selectIfNotSelected(SEL_PAGE,"DashTestPage");
selenium.click("link=Who's online portlet");
selenium.waitForPageToLoad(PAGE_LOAD);
+ selenium.windowMaximize();
+ selenium.captureScreenshot("1x3.jpg");
selenium.click(SUB_ADDCENTER);
selenium.waitForPageToLoad(PAGE_LOAD);
-
selenium.windowMaximize();
- selenium.captureScreenshot("1x.jpg");
+ selenium.captureScreenshot("1x4.jpg");
selenium.click(LNK_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
15 years, 6 months
JBoss Portal SVN: r12232 - in branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests: src/org/jboss/portal/test/selenium and 1 other directory.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2008-11-03 09:29:34 -0500 (Mon, 03 Nov 2008)
New Revision: 12232
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
even more screenshots
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml 2008-11-03 14:17:01 UTC (rev 12231)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml 2008-11-03 14:29:34 UTC (rev 12232)
@@ -94,7 +94,7 @@
<target name="single-test" depends="init, compile, run-src">
- <testng classpathref="test.cp" suitename="Selenium Test">
+ <testng classpathref="test.cp" outputdir="test-output" suitename="Selenium Test">
<classfileset dir="${test.build.dir}"
includes="${testname}" />
<sysproperty key="browser" value="${browser}" />
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 14:17:01 UTC (rev 12231)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-03 14:29:34 UTC (rev 12232)
@@ -66,6 +66,10 @@
selenium.select(SEL_THEME, "label=renaissance");
selenium.click(SUB_THEMESEL);
selenium.waitForPageToLoad(PAGE_LOAD);
+
+ selenium.windowMaximize();
+ selenium.captureScreenshot("2x.jpg");
+
selenium.click(LNK_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.click(LNK_CONFIGURE_DASHBOARD);
@@ -93,6 +97,10 @@
selenium.select(SEL_LAYOUT, "label=generic");
selenium.click(SUB_LAYOUTSEL);
selenium.waitForPageToLoad(PAGE_LOAD);
+
+ selenium.windowMaximize();
+ selenium.captureScreenshot("3x.jpg");
+
selenium.click(LNK_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.click(LNK_CONFIGURE_DASHBOARD);
15 years, 6 months
JBoss Portal SVN: r12231 - 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-03 09:17:01 -0500 (Mon, 03 Nov 2008)
New Revision: 12231
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
more screenshots
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 14:02:58 UTC (rev 12230)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-03 14:17:01 UTC (rev 12231)
@@ -121,6 +121,10 @@
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.click(SUB_ADDCENTER);
selenium.waitForPageToLoad(PAGE_LOAD);
+
+ selenium.windowMaximize();
+ selenium.captureScreenshot("1x.jpg");
+
selenium.click(LNK_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.click("link=DashTestPage");
15 years, 6 months
JBoss Portal SVN: r12230 - 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-03 09:02:58 -0500 (Mon, 03 Nov 2008)
New Revision: 12230
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
max window
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 13:56:13 UTC (rev 12229)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-03 14:02:58 UTC (rev 12230)
@@ -76,6 +76,7 @@
selenium.waitForPageToLoad(PAGE_LOAD);
}
+ selenium.windowMaximize();
selenium.captureScreenshot("2.jpg");
Assert.assertEquals(selenium.getSelectedLabel(SEL_THEME), "renaissance", "Previously selected theme other then expected.");
}
@@ -101,7 +102,10 @@
selenium.select(SEL_PAGE, "label=DashTestPage");
selenium.waitForPageToLoad(PAGE_LOAD);
}
+
+ selenium.windowMaximize();
selenium.captureScreenshot("3.jpg");
+
Assert.assertEquals(selenium.getSelectedLabel(SEL_LAYOUT), "generic", "Previously selected layout other then expected.");
}
@@ -122,6 +126,7 @@
selenium.click("link=DashTestPage");
selenium.waitForPageToLoad(PAGE_LOAD);
+ selenium.windowMaximize();
selenium.captureScreenshot("1.jpg");
Assert.assertTrue(selenium.isTextPresent("Current users"));
15 years, 6 months
JBoss Portal SVN: r12229 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2008-11-03 08:56:13 -0500 (Mon, 03 Nov 2008)
New Revision: 12229
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml
Log:
single test run
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml 2008-11-03 13:53:11 UTC (rev 12228)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml 2008-11-03 13:56:13 UTC (rev 12229)
@@ -92,6 +92,16 @@
</target>
+ <target name="single-test" depends="init, compile, run-src">
+
+ <testng classpathref="test.cp" suitename="Selenium Test">
+ <classfileset dir="${test.build.dir}"
+ includes="${testname}" />
+ <sysproperty key="browser" value="${browser}" />
+ </testng>
+
+ </target>
+
<target name="selenium-test" depends="init, compile, run-src">
<antcall target="copyApps" />
15 years, 6 months
JBoss Portal SVN: r12228 - 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-03 08:53:11 -0500 (Mon, 03 Nov 2008)
New Revision: 12228
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
screenshot2
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 12:51:00 UTC (rev 12227)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-03 13:53:11 UTC (rev 12228)
@@ -123,6 +123,7 @@
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]"));
@@ -132,7 +133,6 @@
public void testMovePortlet() {
final String pageName = "DashMovePage";
-
selenium.click(LNK_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.click(LNK_CONFIGURE_DASHBOARD);
15 years, 6 months
JBoss Portal SVN: r12227 - 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-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]"));
15 years, 6 months
JBoss Portal SVN: r12226 - in branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests: src/org/jboss/portal/test/selenium/cms and 1 other directory.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2008-11-03 05:49:59 -0500 (Mon, 03 Nov 2008)
New Revision: 12226
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/cms/CMSFileUploadTestCase.java
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/testng.xml
Log:
portlet user creation out of suite
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/cms/CMSFileUploadTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/cms/CMSFileUploadTestCase.java 2008-11-02 20:34:46 UTC (rev 12225)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/cms/CMSFileUploadTestCase.java 2008-11-03 10:49:59 UTC (rev 12226)
@@ -18,7 +18,7 @@
{
System.setProperty("workspace","/home/vrockai/workspace/selenium/selenium/"
); }
- */
+ */
private final String CMS_FILE_TABLE = "//div[@id='center']/div/div/div[3]/table";
private final String WORKSPACE = System.getProperty("workspace");
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/testng.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/testng.xml 2008-11-02 20:34:46 UTC (rev 12225)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/testng.xml 2008-11-03 10:49:59 UTC (rev 12226)
@@ -16,12 +16,6 @@
<class name="org.jboss.portal.test.selenium.IdentityAdminTestCase"></class></classes>
</test>
- <test name="org.jboss.portal.test.selenium.PortletUserCreationTestCase"
- verbose="2" annotations="JDK">
- <classes>
- <class name="org.jboss.portal.test.selenium.PortletUserCreationTestCase"></class></classes>
- </test>
-
<test name="org.jboss.portal.test.selenium.WSRPTestCase"
verbose="2" annotations="JDK">
<classes>
15 years, 6 months
JBoss Portal SVN: r12225 - modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/google.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2008-11-02 15:34:46 -0500 (Sun, 02 Nov 2008)
New Revision: 12225
Modified:
modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/google/GoogleClippingPortlet.java
Log:
- Minor improvement of doEdit markup.
Modified: modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/google/GoogleClippingPortlet.java
===================================================================
--- modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/google/GoogleClippingPortlet.java 2008-10-31 19:30:05 UTC (rev 12224)
+++ modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/google/GoogleClippingPortlet.java 2008-11-02 20:34:46 UTC (rev 12225)
@@ -90,10 +90,10 @@
else
{
html = "<p class='portlet-font'>Couldn't retrieve result from Google. Check that '"
- + beg.replaceAll("<", "<") + "' (value of the <code>beginningString</code> portlet preference) is "
- + "contained in the result of issued query ('" + query
- + "', based on the value of the <code>query</code> portlet preference). You can adjust these values in "
- + "<code>portlet.xml</code> to tweak this portlet output...</p>";
+ + beg.replaceAll("<", "<") + "' (value of the <code>beginningString</code> portlet preference) is "
+ + "contained in the result of issued query ('" + query
+ + "', based on the value of the <code>query</code> portlet preference). You can adjust these values in "
+ + "<code>portlet.xml</code> to tweak this portlet output...</p>";
}
renderResponse.setContentType("text/html");
@@ -132,17 +132,14 @@
{
renderResponse.setContentType("text/html");
renderResponse.getWriter().print(
- "<div align='center'>\n" +
- " <br/>\n" +
- " <font class='portlet-font'>Change Location:</font>\n" +
- "\n" +
- " <form method='post' action='" + renderResponse.createActionURL() + "'\n" +
- " <font class='portlet-font'>Zip Code:</font><br/>\n" +
- " <input class='portlet-form-input-field' type='text' value='' size='12' name='" + ZIP + "'/>\n" +
- " <br/>\n" +
- " <input class='portlet-form-input-field' type='submit' name='submit' value='submit'>\n" +
- " </form>\n" +
- "</div>");
+ "<div align='center'>\n" +
+ " <br/>\n" +
+ " <form method='post' action='" + renderResponse.createActionURL() + "'\n" +
+ " <font class='portlet-font'>Change location (zip code): </font>\n" +
+ " <input class='portlet-form-input-field' type='text' value='' size='12' name='" + ZIP + "'/>\n" +
+ " <input class='portlet-form-input-field' type='submit' name='submit' value='submit'>\n" +
+ " </form>\n" +
+ "</div>");
}
@Override
15 years, 6 months