Continuum
  1. Continuum
  2. CONTINUUM-2270

Selenium tests fail when run with JDK 1.6

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0 (Beta)
    • Fix Version/s: 1.4.0 (Beta)
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac OS X
      java version "1.6.0_07"
      Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
      Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
    • Complexity:
      Intermediate
    • Number of attachments :
      1

      Description

      The Selenium tests in the continuum-webapp-test module pass under JDK 1.5, but fail when run with JDK 1.6

        Activity

        Hide
        Jose Morales Martinez added a comment -

        This issue is related to order of test. All test failed because there are a problem in userroles tests. If you escape userroles test you will get 100% successfull.

        I will review userroles test for detect problem.

        Show
        Jose Morales Martinez added a comment - This issue is related to order of test. All test failed because there are a problem in userroles tests. If you escape userroles test you will get 100% successfull. I will review userroles test for detect problem.
        Hide
        Marecor M. Baclay added a comment -

        Hi Jose!

        Apart from java, environment details:
        Apache Maven 2.1.0
        OS name: "linux" version: "2.6.28-11-generic" arch: "i386" Family: "unix"

        With Java version 1.6.0_13, results are:

        • Tests run: 168, Failures: 16, Errors: 0, Skipped: 26

        With Java version 1.5.0.18, my results are:

        • Tests run: 168, Failures: 0, Errors: 0, Skipped: 0

        Running the tests with java 1.6 without the userroles tests indeed will have a successful build! I wonder why including the user roles tests with java 1.5 is successful.

        But anyway, I will also investigate and fix the order of the userroles tests since I was the one who submitted the patch of these tests. Thanks!

        Show
        Marecor M. Baclay added a comment - Hi Jose! Apart from java, environment details: Apache Maven 2.1.0 OS name: "linux" version: "2.6.28-11-generic" arch: "i386" Family: "unix" With Java version 1.6.0_13, results are: Tests run: 168, Failures: 16, Errors: 0, Skipped: 26 With Java version 1.5.0.18, my results are: Tests run: 168, Failures: 0, Errors: 0, Skipped: 0 Running the tests with java 1.6 without the userroles tests indeed will have a successful build! I wonder why including the user roles tests with java 1.5 is successful. But anyway, I will also investigate and fix the order of the userroles tests since I was the one who submitted the patch of these tests. Thanks!
        Hide
        Marecor M. Baclay added a comment -

        Attached CONTINUUM-2270-TestNG.patch.

        • updated the order of UserRolesTest to successfully run with Java 1.6.

        Patch was tested with java 1.6 and java 1.5 with results:

        Tests run: 168, Failures: 0, Errors: 0, Skipped: 0

        Thanks!

        Show
        Marecor M. Baclay added a comment - Attached CONTINUUM-2270 -TestNG.patch. updated the order of UserRolesTest to successfully run with Java 1.6. Patch was tested with java 1.6 and java 1.5 with results: Tests run: 168, Failures: 0, Errors: 0, Skipped: 0 Thanks!
        Hide
        Jose Morales Martinez added a comment -

        Fixed in 787299r.

        Thanks Marecor. In your solution order test, but I took asolution more generic.

        The problem occurred because the list of users was shown 15 users but there were 19 users, and then they weren't displayed. I have established 50 number of users displayed before check user info. Also, I do login with admin at the end of methods.

        Show
        Jose Morales Martinez added a comment - Fixed in 787299r. Thanks Marecor. In your solution order test, but I took asolution more generic. The problem occurred because the list of users was shown 15 users but there were 19 users, and then they weren't displayed. I have established 50 number of users displayed before check user info. Also, I do login with admin at the end of methods.
        Hide
        Marecor M. Baclay added a comment -

        Hi Jose,

        I ran r787299, unfortunately it gave me these results,

        Failed tests:
        testProjectGroupAllBuildSuccess(org.apache.continuum.web.test.ProjectGroupTest)

        Tests run: 168, Failures: 1, Errors: 0, Skipped: 0

        in both Java versions 1.5 and 1.6.

        Have you tried the patch I submitted?

        Thanks!

        Show
        Marecor M. Baclay added a comment - Hi Jose, I ran r787299, unfortunately it gave me these results, Failed tests: testProjectGroupAllBuildSuccess(org.apache.continuum.web.test.ProjectGroupTest) Tests run: 168, Failures: 1, Errors: 0, Skipped: 0 in both Java versions 1.5 and 1.6. Have you tried the patch I submitted? Thanks!
        Hide
        Jose Morales Martinez added a comment -

        I get successfull, but now I update to 787844r and I get this result :

        Failed tests:
        testDeleteBuildQueue(org.apache.continuum.web.test.QueueTest)
        testQueuePageWithoutBuild(org.apache.continuum.web.test.QueueTest)
        testQueuePageWithProjectCurrentlyBuilding(org.apache.continuum.web.test.QueueT
        est)
        testAddEmptyBuildQueue(org.apache.continuum.web.test.QueueTest)
        testProjectGroupAllBuildSuccess(org.apache.continuum.web.test.ProjectGroupTest
        )
        testEditSchedule(org.apache.continuum.web.test.ScheduleTest)

        Tests run: 178, Failures: 6, Errors: 0, Skipped: 1

        [INFO] ------------------------------------------------------------------------
        [ERROR] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] There are test failures.

        I haven't modified 'testProjectGroupAllBuildSuccess' test, previously I have had problems with this test randomly, I think it's related with refresh process or test order.

        Show
        Jose Morales Martinez added a comment - I get successfull, but now I update to 787844r and I get this result : Failed tests: testDeleteBuildQueue(org.apache.continuum.web.test.QueueTest) testQueuePageWithoutBuild(org.apache.continuum.web.test.QueueTest) testQueuePageWithProjectCurrentlyBuilding(org.apache.continuum.web.test.QueueT est) testAddEmptyBuildQueue(org.apache.continuum.web.test.QueueTest) testProjectGroupAllBuildSuccess(org.apache.continuum.web.test.ProjectGroupTest ) testEditSchedule(org.apache.continuum.web.test.ScheduleTest) Tests run: 178, Failures: 6, Errors: 0, Skipped: 1 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. I haven't modified 'testProjectGroupAllBuildSuccess' test, previously I have had problems with this test randomly, I think it's related with refresh process or test order.
        Hide
        Jose Morales Martinez added a comment -

        I have updated test in revision 787880.

        I change BuildAgenttTest and enable/disable DistributedBuilds before/after each test. I get successfull result.

        Show
        Jose Morales Martinez added a comment - I have updated test in revision 787880. I change BuildAgenttTest and enable/disable DistributedBuilds before/after each test. I get successfull result.

          People

          • Assignee:
            Jose Morales Martinez
            Reporter:
            Wendy Smoak
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: