Author: ozizka(a)redhat.com
Date: 2009-04-22 12:35:50 -0400 (Wed, 22 Apr 2009)
New Revision: 319
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/EarTest.java
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/WarTest.java
Log:
test[W|E]arConfigurationTab(Cancel)? tests disabled because of EMBJOPR-156.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-04-22
15:00:41 UTC (rev 318)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-04-22
16:35:50 UTC (rev 319)
@@ -46,6 +46,7 @@
import org.jboss.metatype.api.values.MetaValue;
import org.jboss.metatype.api.values.SimpleValueSupport;
import org.jboss.jopr.jsfunit.exceptions.EmbJoprTestException;
+import org.jboss.jopr.jsfunit.exceptions.HtmlElementNotFoundException;
import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit;
@@ -374,6 +375,12 @@
public HtmlInput enableOrDisableFormInput(String propertyName, Boolean enableInput)
{
HtmlForm form =
(HtmlForm)client.getElement("resourceConfigurationForm");
+ if( null == form ){
+ // Wrapped. Don't want to add "throws Html..." all over the project.
+ throw new RuntimeException(new HtmlElementNotFoundException(
+ "Element #resourceConfigurationForm not found. Page dumped.", this));
+ }
+
HtmlInput input =
(HtmlInput)form.getFirstByXPath(".//input[@ondblclick='//"
+ propertyName + "']");
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/EarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/EarTest.java 2009-04-22
15:00:41 UTC (rev 318)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/EarTest.java 2009-04-22
16:35:50 UTC (rev 319)
@@ -395,9 +395,8 @@
/**
* Changes EAR configuration, and checks whether the changes were saved.
*
- * FAILS because some of the values are read-only. EMBJOPR-96
*/
- public void testEarConfigurationTab() throws IOException, EmbJoprTestException {
+ public void DISABLEDtestEarConfigurationTab() throws IOException, EmbJoprTestException
{
// Deploy the EAR.
String earFilePath = ejtt.getTestDataDir() +"/ear/"+ BASIC_EAR;
@@ -452,9 +451,8 @@
/**
* Changes EAR configuration, and verifies that the changes were NOT saved.
*
- * FAILS because some of the values are read-only. EMBJOPR-96
*/
- public void testEarConfigurationTabCancel() throws IOException, EmbJoprTestException {
+ public void DISABLEDtestEarConfigurationTabCancel() throws IOException,
EmbJoprTestException {
// Deploy the EAR.
String earFilePath = ejtt.getTestDataDir() +"/ear/"+ BASIC_EAR;
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/WarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/WarTest.java 2009-04-22
15:00:41 UTC (rev 318)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/WarTest.java 2009-04-22
16:35:50 UTC (rev 319)
@@ -388,9 +388,8 @@
/**
* Changes WAR configuration, and checks whether the changes were saved.
*
- * FAILS because some of the values are read-only. EMBJOPR-96
*/
- public void testWarConfigurationTab() throws IOException, EmbJoprTestException,
HtmlElementNotFoundException, Exception {
+ public void DISABLEDtestWarConfigurationTab() throws IOException, EmbJoprTestException,
HtmlElementNotFoundException, Exception {
final String DEPLOYABLE_NAME = BASIC_WAR_04;
@@ -406,7 +405,9 @@
// Navigate to the Configuration tab
ContentTableRow appRow =
ejtt.getDefaultContentTable().getFirstRowContainingLink(DEPLOYABLE_NAME);
appRow.getLinkByLabel(DEPLOYABLE_NAME).click();
+ DebugUtils.writeFile("target/A1.html", client.getPageAsText());
ejtt.tabMenu.clickConfigurationTab();
+ DebugUtils.writeFile("target/A2.html", client.getPageAsText());
// Read properties.
Properties props = new Properties();
@@ -447,7 +448,7 @@
*
* FAILS because some of the values are read-only. EMBJOPR-96
*/
- public void testWarConfigurationTabCancel() throws IOException, EmbJoprTestException {
+ public void DISABLEDtestWarConfigurationTabCancel() throws IOException,
EmbJoprTestException {
final String DEPLOYABLE_NAME = BASIC_WAR_05;
Show replies by date