ICEfaces
  1. ICEfaces
  2. ICE-4950

Configure existing JSF 2.0 test cases to run with ICEfaces 2.0

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha1
    • Fix Version/s: 2.0-Alpha3, 2.0.0
    • Component/s: QA
    • Labels:
      None
    • Environment:
      ICEfaces 2.0 JSF 2.0

      Description

      The repository for the reference implementation of JSF 2.0 (Mojarra) comes with a number of tests and sample applications that exercise various features and capabilities of the framework. It would be valuable for us to configure these tests to also run with ICEfaces included as a measure of a our compatibility with stock JSF 2.0.
      1. failures.txt
        33 kB
        Mandeep Hayher
      2. BridgeSetup.java
        4 kB
        Mandeep Hayher
      3. unitTest_glimmer_rev21357.log
        277 kB
        Joanne Bai
      4. unitTest_glimmer_rev21367.log
        270 kB
        Joanne Bai

        Issue Links

          Activity

          Hide
          Deryk Sinotte added a comment -

          The instructions for checking out Mojarra from the Subversion repository are here (https://javaserverfaces.dev.java.net/checkout.html#svn) but it's probably better to simply download (https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList) the source version of an official release for testing purposes (e.g https://javaserverfaces.dev.java.net/files/documents/1866/146041/mojarra-2.0.2-FCS-source.zip). I think the source version comes with the same build file and tests. There are some ant tasks provided in the Mojarra repository designed specifically for testing, for example:

          test Run API, Impl, and Demo automated tests
          test.with.container.refresh Stop the target container, deploy the build artifacts, restart the container and test

          You'll need to rename the build.properties.glassfish.orig file to build.properties and then update the values to match your environment. At a minimum, it may only require setting jsf.build.home to point at the directory where you unzipped the src release:

          jsf.build.home=/Users/deryk/Downloads/mojarra-2.0.2-FCS-source

          Under the [install.dir]/jsf-ri/ directory are systest, systest-per-webapp, test, and web directories that all contain various tests. I haven't run them yet and don't have all the details about how they are run so there may be some more investigation involved. The main goal is to see if we a) get the tests to run and then b) run them with the icefaces.jar (and possibly icepush.jar) included in the classpath.

          Show
          Deryk Sinotte added a comment - The instructions for checking out Mojarra from the Subversion repository are here ( https://javaserverfaces.dev.java.net/checkout.html#svn ) but it's probably better to simply download ( https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList ) the source version of an official release for testing purposes (e.g https://javaserverfaces.dev.java.net/files/documents/1866/146041/mojarra-2.0.2-FCS-source.zip ). I think the source version comes with the same build file and tests. There are some ant tasks provided in the Mojarra repository designed specifically for testing, for example: test Run API, Impl, and Demo automated tests test.with.container.refresh Stop the target container, deploy the build artifacts, restart the container and test You'll need to rename the build.properties.glassfish.orig file to build.properties and then update the values to match your environment. At a minimum, it may only require setting jsf.build.home to point at the directory where you unzipped the src release: jsf.build.home=/Users/deryk/Downloads/mojarra-2.0.2-FCS-source Under the [install.dir] /jsf-ri/ directory are systest, systest-per-webapp, test, and web directories that all contain various tests. I haven't run them yet and don't have all the details about how they are run so there may be some more investigation involved. The main goal is to see if we a) get the tests to run and then b) run them with the icefaces.jar (and possibly icepush.jar) included in the classpath.
          Hide
          Mandeep Hayher added a comment -

          All mojarra tests have now been run with icefaces (using the files provided by Deryk and the updated bridge file provided by Ted).

          33 Tests fail, 43 pass and one test case was skipped with the following message:
          [echo] Skipping disable-bean-validator. That one runs on v3 only, and our current container is glassfish.
          Note: Test were run using Glassfishv3 server.

          Please find the attached failure.txt file for details of failed tests.

          Show
          Mandeep Hayher added a comment - All mojarra tests have now been run with icefaces (using the files provided by Deryk and the updated bridge file provided by Ted). 33 Tests fail, 43 pass and one test case was skipped with the following message: [echo] Skipping disable-bean-validator. That one runs on v3 only, and our current container is glassfish. Note: Test were run using Glassfishv3 server. Please find the attached failure.txt file for details of failed tests.
          Hide
          Mandeep Hayher added a comment -

          Attaching files provided by Deryk & Ted.
          icefaces.xml should be copied under the mojarra-2.0.2-FCS-source\common\ant directory.
          common.xml should replace the existing file under mojarra-2.0.2-FCS-source\common\ant directory.

          BridgeSetup.java should replace the file under glimmer\core\src\main\java \org\icefaces\push

          When all this is done, run 'ant test' from the mojarra root directory

          Show
          Mandeep Hayher added a comment - Attaching files provided by Deryk & Ted. icefaces.xml should be copied under the mojarra-2.0.2-FCS-source\common\ant directory. common.xml should replace the existing file under mojarra-2.0.2-FCS-source\common\ant directory. BridgeSetup.java should replace the file under glimmer\core\src\main\java \org\icefaces\push When all this is done, run 'ant test' from the mojarra root directory
          Hide
          Judy Guglielmin added a comment -

          checked in fixed test classes test application so that all tests pass now for jsf-ri/test.
          Although altering some of the tests ensure that ICEfaces passes some of the tests (see the checked in tests for jsf-systest application), as of the following revisions the following tests still don't pass:-

          glimmer rev 21318, Mojarra rev 8372

          PARTIAL STATE SAVING

          test.ajax
          1) testCommandButtonButton (element not found testform1:msgs)
          2) testAjaxTagEventarpping *say:- Expected '1', but received '3')
          3) testAjaxTagKeywords "out1:- Expected '4', but received '8'

          test.composite
          1) testActionSource1 --IndexOutOfBoundsException
          2) testActionSource2
          3) testActionSource3
          4) testActionSource4
          5) testValidator1
          6) testValidator2
          7) testValidator3
          8) testValidator4
          9) testActions
          10) testCustomActions
          11) testActionListeners
          12) testValidators
          13) testValueChangeListeners
          14) testChildrenAndFacets
          15) testCompoisiteComponentActionWithArgs

          test.render

          1)testOutputScriptStyle
          2) testScriptQuery

          test.resroucelocation
          1)testResourceRelocation

          test.implicitnav
          1)testImplicitNavigation
          2) testImplicitNavigationWithredirect

          test.state
          1) testDeleteAddSameAction

          FULL STATE SAVING:-
          test.ajax
          new**
          i)testAjaxEcho
          ii)testAjaxEchoWithStringId
          iii)testAjaxEchoLT
          iv) testCdataEscape1
          v) testCdataEscape2
          vi) testCdataEscape3
          vii) testCdataEscape4
          viii) testCdataEscape5
          ix) testCdataEscape6
          x) testCdataEscape7
          xi) testTextArea
          ...all of these are returning empty strings instead of the proper value expected

          1) testCommandButtonButton (element not found testform1:msgs)--not same error
          xii) testAjaxMultiform
          xiii) testAjaxMultiRender
          xiv) testAjaxAndScript
          xv) testAjaxCount
          xvi) testAjaxRequestDefaultsButton
          xvii) testAjaxRequestDefaultsButtonNoPrepend
          xviii) testAjaxRequestDefaultsEdit
          xix) testAjaxRequestDefaultsEditNoPrepend
          xx) testAjaxEvent
          xxi) testRerenderingOtherForm
          xxii) testAjaxTagWrapping
          xxiii) testAjaxTagEventAttribute

          2) testAjaxTagEventWrapping different exception

          3) testAjaxTagKeywords "out1:- Expected '4', but received '8'

          too many more to mention....!!!! (at least another 5 or 6)

          test.composite
          same as partial except converter tests failing too.

          test.facelets
          i) testIssue1313 (null)

          test.render
          same as partial plus testCommandButtonButton

          test.resourcelocation
          same as partial

          test.implicitnav
          same as partial

          test.state
          same as partial

          test.methodRef
          i) testResourceRelocation

          test.flash
          i)testFlash (javascript error on property "viewID". (NEW THIS WEEK!!)

          Show
          Judy Guglielmin added a comment - checked in fixed test classes test application so that all tests pass now for jsf-ri/test. Although altering some of the tests ensure that ICEfaces passes some of the tests (see the checked in tests for jsf-systest application), as of the following revisions the following tests still don't pass:- glimmer rev 21318, Mojarra rev 8372 PARTIAL STATE SAVING test.ajax 1) testCommandButtonButton (element not found testform1:msgs) 2) testAjaxTagEventarpping *say:- Expected '1', but received '3') 3) testAjaxTagKeywords "out1:- Expected '4', but received '8' test.composite 1) testActionSource1 --IndexOutOfBoundsException 2) testActionSource2 3) testActionSource3 4) testActionSource4 5) testValidator1 6) testValidator2 7) testValidator3 8) testValidator4 9) testActions 10) testCustomActions 11) testActionListeners 12) testValidators 13) testValueChangeListeners 14) testChildrenAndFacets 15) testCompoisiteComponentActionWithArgs test.render 1)testOutputScriptStyle 2) testScriptQuery test.resroucelocation 1)testResourceRelocation test.implicitnav 1)testImplicitNavigation 2) testImplicitNavigationWithredirect test.state 1) testDeleteAddSameAction FULL STATE SAVING:- test.ajax new** i)testAjaxEcho ii)testAjaxEchoWithStringId iii)testAjaxEchoLT iv) testCdataEscape1 v) testCdataEscape2 vi) testCdataEscape3 vii) testCdataEscape4 viii) testCdataEscape5 ix) testCdataEscape6 x) testCdataEscape7 xi) testTextArea ...all of these are returning empty strings instead of the proper value expected 1) testCommandButtonButton (element not found testform1:msgs)--not same error xii) testAjaxMultiform xiii) testAjaxMultiRender xiv) testAjaxAndScript xv) testAjaxCount xvi) testAjaxRequestDefaultsButton xvii) testAjaxRequestDefaultsButtonNoPrepend xviii) testAjaxRequestDefaultsEdit xix) testAjaxRequestDefaultsEditNoPrepend xx) testAjaxEvent xxi) testRerenderingOtherForm xxii) testAjaxTagWrapping xxiii) testAjaxTagEventAttribute 2) testAjaxTagEventWrapping different exception 3) testAjaxTagKeywords "out1:- Expected '4', but received '8' too many more to mention....!!!! (at least another 5 or 6) test.composite same as partial except converter tests failing too. test.facelets i) testIssue1313 (null) test.render same as partial plus testCommandButtonButton test.resourcelocation same as partial test.implicitnav same as partial test.state same as partial test.methodRef i) testResourceRelocation test.flash i)testFlash (javascript error on property "viewID". (NEW THIS WEEK!!)
          Hide
          Joanne Bai added a comment - - edited

          Glimmer revision 21357
          Mojarra-2.0.2-FCS
          Glassfish v3

          The following test cases are failing or having error:

          [junit] Test com.sun.faces.application.resource.TestResourceHandlerImpl FAILED
          [junit] Test com.sun.faces.application.resource.TestResourceImpl FAILED
          [junit] Test com.sun.faces.ajax.AjaxMessageTestCase FAILED
          [junit] Test com.sun.faces.ajax.AjaxRequestMultiRenderTestCase FAILED
          [junit] Test com.sun.faces.ajax.AjaxSelectTestCase FAILED
          [junit] Test com.sun.faces.ajax.AjaxTagEventAttributeTestCase FAILED
          [junit] Test com.sun.faces.ajax.AjaxTagEventWrappingTestCase FAILED
          [junit] Test com.sun.faces.ajax.AjaxTagTestCase FAILED
          [junit] Test com.sun.faces.ajax.AjaxTagWrappingTestCase FAILED
          [junit] Test com.sun.faces.composite.CompositeComponentsTestCase FAILED
          [junit] Test com.sun.faces.composite.DefaultActionTestCase FAILED
          [junit] Test com.sun.faces.composite.ResourceDependencyComponentTestCase FAILED
          [junit] Test com.sun.faces.render.CommandButtonTestCase FAILED
          [junit] Test com.sun.faces.render.OutputScriptStyleTestCase FAILED
          [junit] Test com.sun.faces.systest.FlashViewParamTestCase FAILED
          [junit] Test com.sun.faces.systest.tags.EventTestCase FAILED
          [junit] Test com.sun.faces.systest.ResourceRelocationTestCase FAILED
          [junit] Test com.sun.faces.systest.implicitnav.ImplicitNavigationTestCase FAILED
          [junit] Test com.sun.faces.systest.state.DynamicStateTestCase FAILED
          [junit] Test com.sun.faces.systest.FlashTestCase FAILED

          I can see 175 test results created in jsf-ri\testresults. The tests below are now Pass compared to the latest comments that Judy made:

          • test.facelets
          • test.methodRef

          Please refer to attached unitTest_glimmer_rev21357.log for details.

          Show
          Joanne Bai added a comment - - edited Glimmer revision 21357 Mojarra-2.0.2-FCS Glassfish v3 The following test cases are failing or having error: [junit] Test com.sun.faces.application.resource.TestResourceHandlerImpl FAILED [junit] Test com.sun.faces.application.resource.TestResourceImpl FAILED [junit] Test com.sun.faces.ajax.AjaxMessageTestCase FAILED [junit] Test com.sun.faces.ajax.AjaxRequestMultiRenderTestCase FAILED [junit] Test com.sun.faces.ajax.AjaxSelectTestCase FAILED [junit] Test com.sun.faces.ajax.AjaxTagEventAttributeTestCase FAILED [junit] Test com.sun.faces.ajax.AjaxTagEventWrappingTestCase FAILED [junit] Test com.sun.faces.ajax.AjaxTagTestCase FAILED [junit] Test com.sun.faces.ajax.AjaxTagWrappingTestCase FAILED [junit] Test com.sun.faces.composite.CompositeComponentsTestCase FAILED [junit] Test com.sun.faces.composite.DefaultActionTestCase FAILED [junit] Test com.sun.faces.composite.ResourceDependencyComponentTestCase FAILED [junit] Test com.sun.faces.render.CommandButtonTestCase FAILED [junit] Test com.sun.faces.render.OutputScriptStyleTestCase FAILED [junit] Test com.sun.faces.systest.FlashViewParamTestCase FAILED [junit] Test com.sun.faces.systest.tags.EventTestCase FAILED [junit] Test com.sun.faces.systest.ResourceRelocationTestCase FAILED [junit] Test com.sun.faces.systest.implicitnav.ImplicitNavigationTestCase FAILED [junit] Test com.sun.faces.systest.state.DynamicStateTestCase FAILED [junit] Test com.sun.faces.systest.FlashTestCase FAILED I can see 175 test results created in jsf-ri\testresults. The tests below are now Pass compared to the latest comments that Judy made: test.facelets test.methodRef Please refer to attached unitTest_glimmer_rev21357.log for details.
          Hide
          Joanne Bai added a comment -

          Glimmer revision 21367
          Mojarra-2.0.2-FCS
          Glassfish v3

          Compared to test results of Glimmer revision 21357, the following failures/errors are no longer seen:

          [junit] Test com.sun.faces.application.resource.TestResourceHandlerImpl FAILED
          [junit] Test com.sun.faces.application.resource.TestResourceImpl FAILED

          Here are the test cases that are failing or having error:

          [junit] Test com.sun.faces.ajax.AjaxMessageTestCase FAILED
          [junit] Test com.sun.faces.ajax.AjaxRequestMultiRenderTestCase FAILED
          [junit] Test com.sun.faces.ajax.AjaxSelectTestCase FAILED
          [junit] Test com.sun.faces.ajax.AjaxTagEventAttributeTestCase FAILED
          [junit] Test com.sun.faces.ajax.AjaxTagEventWrappingTestCase FAILED
          [junit] Test com.sun.faces.ajax.AjaxTagTestCase FAILED
          [junit] Test com.sun.faces.ajax.AjaxTagWrappingTestCase FAILED
          [junit] Test com.sun.faces.composite.CompositeComponentsTestCase FAILED
          [junit] Test com.sun.faces.composite.DefaultActionTestCase FAILED
          [junit] Test com.sun.faces.composite.ResourceDependencyComponentTestCase FAILED
          [junit] Test com.sun.faces.render.CommandButtonTestCase FAILED
          [junit] Test com.sun.faces.render.OutputScriptStyleTestCase FAILED
          [junit] Test com.sun.faces.systest.FlashViewParamTestCase FAILED
          [junit] Test com.sun.faces.systest.tags.EventTestCase FAILED
          [junit] Test com.sun.faces.systest.ResourceRelocationTestCase FAILED
          [junit] Test com.sun.faces.systest.implicitnav.ImplicitNavigationTestCase FAILED
          [junit] Test com.sun.faces.systest.state.DynamicStateTestCase FAILED
          [junit] Test com.sun.faces.systest.FlashTestCase FAILED

          File unitTest_glimmer_rev21367.log will be uploaded for details.

          Show
          Joanne Bai added a comment - Glimmer revision 21367 Mojarra-2.0.2-FCS Glassfish v3 Compared to test results of Glimmer revision 21357, the following failures/errors are no longer seen: [junit] Test com.sun.faces.application.resource.TestResourceHandlerImpl FAILED [junit] Test com.sun.faces.application.resource.TestResourceImpl FAILED Here are the test cases that are failing or having error: [junit] Test com.sun.faces.ajax.AjaxMessageTestCase FAILED [junit] Test com.sun.faces.ajax.AjaxRequestMultiRenderTestCase FAILED [junit] Test com.sun.faces.ajax.AjaxSelectTestCase FAILED [junit] Test com.sun.faces.ajax.AjaxTagEventAttributeTestCase FAILED [junit] Test com.sun.faces.ajax.AjaxTagEventWrappingTestCase FAILED [junit] Test com.sun.faces.ajax.AjaxTagTestCase FAILED [junit] Test com.sun.faces.ajax.AjaxTagWrappingTestCase FAILED [junit] Test com.sun.faces.composite.CompositeComponentsTestCase FAILED [junit] Test com.sun.faces.composite.DefaultActionTestCase FAILED [junit] Test com.sun.faces.composite.ResourceDependencyComponentTestCase FAILED [junit] Test com.sun.faces.render.CommandButtonTestCase FAILED [junit] Test com.sun.faces.render.OutputScriptStyleTestCase FAILED [junit] Test com.sun.faces.systest.FlashViewParamTestCase FAILED [junit] Test com.sun.faces.systest.tags.EventTestCase FAILED [junit] Test com.sun.faces.systest.ResourceRelocationTestCase FAILED [junit] Test com.sun.faces.systest.implicitnav.ImplicitNavigationTestCase FAILED [junit] Test com.sun.faces.systest.state.DynamicStateTestCase FAILED [junit] Test com.sun.faces.systest.FlashTestCase FAILED File unitTest_glimmer_rev21367.log will be uploaded for details.

            People

            • Assignee:
              Judy Guglielmin
              Reporter:
              Deryk Sinotte
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: