Author: vrockai
Date: 2009-03-02 10:01:37 -0500 (Mon, 02 Mar 2009)
New Revision: 12921
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/JBossPortalSeleniumTestCase.java
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/portal/EndtoEndPortalAdminTestCase.java
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/testng.xml
Log:
[JBPORTAL-2308] locator fix
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml 2009-03-02 14:46:37 UTC
(rev 12920)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml 2009-03-02 15:01:37 UTC
(rev 12921)
@@ -72,6 +72,7 @@
<echo message="Compiling testsuite" />
<mkdir dir="${test.build.dir}" />
<javac srcdir="${test.src.dir}"
destdir="${test.build.dir}" classpathref="libraries.cp"
debug="on" />
+ <copy
file="${test.src.dir}/org/jboss/portal/test/selenium/locator.properties"
todir="${test.build.dir}/org/jboss/portal/test/selenium/"/>
</target>
<target name="run-src">
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 2009-03-02
14:46:37 UTC (rev 12920)
+++
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/JBossPortalSeleniumTestCase.java 2009-03-02
15:01:37 UTC (rev 12921)
@@ -65,6 +65,14 @@
InputStream is =
cl.getResourceAsStream("org/jboss/portal/test/selenium/locator.properties");
Properties props = new Properties();
props.load(is);
+ if (props == null){
+ is =
JBossPortalSeleniumTestCase.class.getResourceAsStream("org/jboss/portal/test/selenium/locator.properties");
+ props.load(is);
+ }
+ if (props == null){
+ // System.out.println("still null");
+ }
+
return props;
}
@@ -75,9 +83,10 @@
}
if (props == null) {
- //System.out.println("props null");
+ // System.out.println("props null");
return subst;
} else {
+// System.out.println("! props null");
return props.getProperty(prop) != null ? props.getProperty(prop) : subst;
}
}
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/portal/EndtoEndPortalAdminTestCase.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/portal/EndtoEndPortalAdminTestCase.java 2009-03-02
14:46:37 UTC (rev 12920)
+++
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/portal/EndtoEndPortalAdminTestCase.java 2009-03-02
15:01:37 UTC (rev 12921)
@@ -19,8 +19,7 @@
public static String casePfx = "portal.e2e.";
- public final String SEL_PORTLET_TYPE = getProp(casePfx + "sel.portlet.type",
- "_jbpns_2fadmin_2fdefault_2fAdminPortletWindowsnpbj:_viewRoot:windowForm:instanceId");
+ public final String SEL_PORTLET_TYPE = getProp(casePfx +
"sel.portlet.type","//select[contains(@id,'windowForm:instanceId')]");
private final String SUB_LAYOUT_ADD_CENTER = getProp(casePfx +
"sub.layout.add.center",
"//input[contains(@id,'layoutForm:a_center')]");
private final String INP_WINDOW_NAME = getProp(casePfx + "inp.window.name",
"//input[contains(@id,'windowForm:windowName')]");
private final String SUB_RENAME_PORTAL = getProp(casePfx +
"sub.rename.portal",
"//input[contains(@id,'renameForm:rename')]");
@@ -51,7 +50,7 @@
private final String PAG_TL_DISPLAY = getProp(casePfx + "pag.tl.display",
"//a[contains(@id,''obj-nav-form:pages-datatable:{0}:rename-display'')]");
private final String PAG_TL_DELETE = getProp(casePfx + "pag.tl.delete",
"//a[contains(@id,''obj-nav-form:pages-datatable:{0}:delete-link'')]");
private final String PAG_TL_MAKEDEF = getProp(casePfx + "pag.tl.makedef",
"//a[contains(@id,''obj-nav-form:pages-datatable:{0}:default-link'')]");
- private final String DIV_PORT_CONTENT = getProp(casePfx + "div.por.cont",
"content-container");
+ private final String DIV_PORT_CONTENT = getProp(casePfx + "div.por.cont",
"conrrerertent-container");
private final String INP_GOO_SEARCH = getProp(casePfx + "inp.goo.search",
"//div[contains(@id,'directory_search_div')]/form/input[@name='query']");
private final String SUB_GOO_SEARCH = getProp(casePfx + "sup.goo.search",
"//div[contains(@id,'directory_search_div')]/form/input[@type='submit']");
private final String INP_NET_SEARCH = getProp(casePfx + "inp.goo.search",
"//div[contains(@id,'directory_search_div')]/form/input[@name='query']");
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/testng.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/testng.xml 2009-03-02 14:46:37 UTC
(rev 12920)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/testng.xml 2009-03-02 15:01:37 UTC
(rev 12921)
@@ -52,6 +52,12 @@
<class
name="org.jboss.portal.test.selenium.portal.PortletInstancesTestCase"></class></classes>
</test>
+ <test
name="org.jboss.portal.test.selenium.portal.PageCoordinationTestCase"
+ verbose="2" annotations="JDK">
+ <classes>
+ <class
name="org.jboss.portal.test.selenium.portal.PageCoordinationTestCase"></class></classes>
+ </test>
+
<test name="org.jboss.portal.test.selenium.cms.CMSFileTestCase"
verbose="2" annotations="JDK">
<classes>
@@ -82,6 +88,18 @@
<class
name="org.jboss.portal.test.selenium.cms.CMSArchiveUploadTestCase"></class></classes>
</test>
+ <test
name="org.jboss.portal.test.selenium.portal.EndtoEndPortalAdminTestCase"
+ verbose="2" annotations="JDK">
+ <classes>
+ <class
name="org.jboss.portal.test.selenium.portal.EndtoEndPortalAdminTestCase"></class></classes>
+ </test>
+
+ <test name="org.jboss.portal.test.selenium.EndToEndBeaPortlet"
+ verbose="2" annotations="JDK">
+ <classes>
+ <class
name="org.jboss.portal.test.selenium.EndToEndBeaPortlet"></class></classes>
+ </test>
+
<listeners>
<!-- <listener
class-name="org.testng.reporters.JUnitXMLReporter"></listener> -->
<listener
class-name="org.jboss.portal.test.selenium.JBossSeleniumTestListener"/>