Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2992

Test errors/failures in the showcase testers on JSF 2.1 branches

    Details

      Description

      Steps to Reproduce

      1. start liferay-portal 6.2
      2. go into /liferay-faces-bridge-impl-3.x/demos/jsf-showcase-portlet/.
      3. deploy portlet to liferay-portal-6.2/deploy/.
      4. add jsf-showcase-portlet to a page
      5. go into /liferay-faces-bridge-impl-3.x/demos/alloy-showcase-portlet/.
      6. deploy portlet to liferay-portal-6.2/deploy/.
      7. add alloy-showcase-portlet to a page
      8. Run the showcase tests with the following command:
        mvn -P selenium,liferay,firefox verify
        

      Expected result : The following should happen:

      All tests pass with zero failures.

      Actual result : The following actually happens:

      jsf-showcase results (tests any other portlets as well):

      Results :
      
      Failed tests: 
        CommandButtonVariousStylesTester.runCommandButtonVariousStylesTest:31->ButtonLinkTester.runVariousStylesTest:135 Element (//*[contains(@class,'btn ')][@value='Disabled' or contains(.,'Disabled')])[2] is not present in the DOM.
        InputTextareaSizeTester.runInputTextareaSizeTest:59 Width of element [[FirefoxDriver: firefox on MAC (48abbeb7-155f-1e4f-ba4b-5a7aca36aa26)] -> xpath: (//textarea[contains(@id,':textarea')])[2]] is not "150". Instead it is "164". expected:<150> but was:<164>
        MessagesGeneralTester.runMessagesGeneralTest:39->OutputTester.testCharCountMessage:39->OutputTester.testMessage:53 Element (//div[@class='showcase-example-usage'])[1]/ul/li does not contain text "You typed 5 characters.". Instead it contains text "Warning: This page calls for XML namespace http://xmlns.jcp.org/jsf/facelets declared with prefix ui but no taglibrary exists for that namespace.".
      Tests in error: 
        InputHiddenImmediateTester.runInputHiddenImmediateTest:51 » WebDriver Element ...
        LinkGeneralTester.runLinkGeneralTest:31->ButtonLinkTester.runButtonLinkGeneralTest:51 » NoSuchElement
        LinkNavigationParamTester.runLinkNavigationParamTest:31->ButtonLinkTester.runButtonLinkNavigationParamTest:83->ButtonLinkTester.testNavigationPage:151 » Timeout
        OutputLabelGeneralTester.runOutputLabelGeneralTest:38 » WebDriver Element is n...
        SelectManyCheckboxConversionTester.runSelectManyCheckboxConversionTest:29->SelectManyTester.runSelectManyConversionTest:69->SelectTester.clickAndWaitForAjaxRerender:56 » WebDriver
        SelectManyCheckboxImmediateTester.runSelectManyCheckboxImmediateTest:29->SelectManyTester.runSelectManyImmediateTest:168->SelectManyTester.testSelectMany:189 » WebDriver
        SelectManyListboxConversionTester.runSelectManyListboxConversionTest:31->SelectManyTester.runSelectManyConversionTest:69->SelectTester.clickAndWaitForAjaxRerender:56 » WebDriver
        SelectOneRadioImmediateTester.runSelectOneRadioImmediateTest:29->SelectOneTester.runSelectOneImmediateTest:139->SelectOneTester.testSelectOne:160 » WebDriver
      
      Tests run: 181, Failures: 3, Errors: 8, Skipped: 4
      
      [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! The file encoding for reports output files should be provided by the POM property ${project.reporting.outputEncoding}.
      [INFO] 
      [INFO] --- maven-failsafe-plugin:2.19.1:integration-test (alloy-showcase-selenium-tests) @ com.liferay.faces.test.bridge.integration ---
      

      and

      alloy-showcase results:

      Results :
      
      Failed tests: 
        ButtonVariousStylesTester.runButtonVariousStylesTest:31->ButtonLinkTester.runVariousStylesTest:119 Element //*[contains(@class,'btn ')][contains(@class,'btn-lg')][@value='Large' or contains(.,'Large')][2] is not present in the DOM.
        CommandButtonVariousStylesTester.runCommandButtonVariousStylesTest:31->ButtonLinkTester.runVariousStylesTest:119 Element //*[contains(@class,'btn ')][contains(@class,'btn-lg')][@value='Large' or contains(.,'Large')][2] is not present in the DOM.
        InputTextareaSizeTester.runInputTextareaSizeTest:59 Width of element [[FirefoxDriver: firefox on MAC (aec133e0-fe58-0b4b-ac5e-939dc303c669)] -> xpath: (//textarea[contains(@id,':textarea')])[2]] is not "150". Instead it is "164". expected:<150> but was:<164>
        MessagesGeneralTester.runMessagesGeneralTest:39->OutputTester.testCharCountMessage:39->OutputTester.testMessage:53 Element (//div[@class='showcase-example-usage'])[1]/ul/li does not contain text "You typed 5 characters.". Instead it contains text "Warning: This page calls for XML namespace http://xmlns.jcp.org/jsf/facelets declared with prefix ui but no taglibrary exists for that namespace.".
        OutputStylesheetGeneralTester.runOutputStylesheetGeneralTest:59 The button's display is not block, instead it is inline-block expected:<[]block> but was:<[inline-]block>
      Tests in error: 
        CommandButtonNavigationParamTester.runCommandButtonNavigationParamTest:31->ButtonLinkTester.runButtonLinkNavigationParamTest:90 » NoSuchElement
        CommandLinkNavigationParamTester.runCommandLinkNavigationTest:31->ButtonLinkTester.runButtonLinkNavigationParamTest:90 » NoSuchElement
        InputHiddenImmediateTester.runInputHiddenImmediateTest:51 » WebDriver Element ...
        InputSecretRedisplayTester.runInputSecretRedisplayTest:40 » WebDriver Element ...
        OutputLabelGeneralTester.runOutputLabelGeneralTest:38 » WebDriver Element is n...
        SelectManyCheckboxImmediateTester.runSelectManyCheckboxImmediateTest:29->SelectManyTester.runSelectManyImmediateTest:163->SelectManyTester.testSelectMany:212->SelectTester.clickAndWaitForAjaxRerender:56 » WebDriver
        SelectManyListboxImmediateTester.runSelectManyListboxImmediateTest:31->SelectManyTester.runSelectManyImmediateTest:163->SelectManyTester.testSelectMany:212->SelectTester.clickAndWaitForAjaxRerender:56 » WebDriver
        SelectOneListboxImmediateTester.runSelectOneListboxImmediateTest:31->SelectOneTester.runSelectOneImmediateTest:134->SelectOneTester.testSelectOne:169->SelectTester.clickAndWaitForAjaxRerender:56 » WebDriver
        SelectOneRadioImmediateTester.runSelectOneRadioImmediateTest:29->SelectOneTester.runSelectOneImmediateTest:139->SelectOneTester.testSelectOne:160 » WebDriver
      
      Tests run: 93, Failures: 5, Errors: 9, Skipped: 8
      
      [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! The file encoding for reports output files should be provided by the POM property ${project.reporting.outputEncoding}.
      [INFO] 
      [INFO] --- maven-failsafe-plugin:2.19.1:verify (selenium-tests) @ com.liferay.faces.test.bridge.integration ---
      [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! The file encoding for reports output files should be provided by the POM property ${project.reporting.outputEncoding}.
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 12:20 min
      [INFO] Finished at: 2017-01-19T13:03:29-05:00
      [INFO] Final Memory: 18M/366M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.19.1:verify (selenium-tests) on project com.liferay.faces.test.bridge.integration: There are test failures.
      [ERROR] 
      [ERROR] Please refer to /Users/philipwhite/Projects/liferay.com/liferay-faces/liferay-faces-bridge-impl-3.x/test/integration/target/failsafe-reports for the individual test results.
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      

        Attachments

          Activity

            People

            Assignee:
            philip.white Philip White (Inactive)
            Reporter:
            philip.white Philip White (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                alloy-2.0.1
                bridge-impl-3.1.0
                showcase-2.0.1