Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-3128

Test automation scripts are creating empty workspaces

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical Critical
    • 3.1.0.GA
    • 3.0.0.GA
    • testing
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Test automation script for functional tests, miscellaneous test  at [jobs/Testing/e2e/complex/latest · master · codeready-workspaces / crw-jenkins · GitLab (redhat.com)

      https://gitlab.cee.redhat.com/codeready-workspaces/crw-jenkins/-/tree/master/jobs/Testing/e2e/complex/latest]are failing. Test scripts are creating empty workspace thus create workspace step is failing for every devfile , plugin test case execution via automation job. Manually these tests are failing. 
      https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/Testing/job/e2e/job/complex/job/latest/job/functional-tests/81/ 

      Another example of failure in plugins test run against DS 3.0.0: https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/blue/organizations/jenkins/Testing%2Fe2e%2Fbasic%2Ftypescript-tests/detail/typescript-tests/1675/pipeline

                 ▼ ProjectTree.waitProjectTreeContainer
                   ‣ DriverHelper.waitPresence By(css selector, #theia-left-side-panel #explorer-view-container--files .theia-TreeContainer)
                   ‣ DriverHelper.waitVisibilityBoolean By(css selector, .theia-TreeNode[title='/projects/web-nodejs-sample'])
                   ‣ DriverHelper.isVisible By(css selector, .theia-TreeNode[title='/projects/web-nodejs-sample'])
                   ‣ DriverHelper.wait (10000 milliseconds)
                   ‣ DriverHelper.isVisible By(css selector, .theia-TreeNode[title='/projects/web-nodejs-sample'])
                   ‣ DriverHelper.wait (10000 milliseconds)
                   ‣ DriverHelper.isVisible By(css selector, .theia-TreeNode[title='/projects/web-nodejs-sample'])
                   ‣ DriverHelper.wait (10000 milliseconds)
                   ‣ DriverHelper.isVisible By(css selector, .theia-TreeNode[title='/projects/web-nodejs-sample'])
                   ‣ DriverHelper.wait (10000 milliseconds)
                   ‣ DriverHelper.isVisible By(css selector, .theia-TreeNode[title='/projects/web-nodejs-sample'])
                   ‣ DriverHelper.wait (10000 milliseconds)
                   ‣ ProjectTree.waitProjectImported project not located, reloading page.
                 ▼ BrowserTabsUtil.refreshPage
                   ‣ DriverHelper.getDriver
                 ▼ Ide.waitWorkspaceAndIde
                 ▼ Ide.waitForEditor
                   ‣ DriverHelper.waitVisibility By(css selector, #theia-main-content-panel)
                   ‣ DriverHelper.waitVisibility - Polling timed out attempt #1, retrying with 1000ms timeout
                   ‣ DriverHelper.waitVisibility - Polling timed out attempt #2, retrying with 1000ms timeout
                   ‣ DriverHelper.waitVisibility - Element is located and is visible.
                 ▼ Ide.waitIde
                   ‣ DriverHelper.waitVisibility By(css selector, #theia-app-shell #theia-top-panel .p-MenuBar-content)
                   ‣ DriverHelper.waitVisibility - Element is located and is visible.
                   ‣ DriverHelper.waitVisibility By(css selector, #theia-left-content-panel)
                   ‣ DriverHelper.waitVisibility - Element is located and is visible.
                   ‣ DriverHelper.waitVisibility By(css selector, *[id="shell-tab-explorer-view-container"])
                   ‣ DriverHelper.waitVisibility - Element is located and is visible.
                 ▼ ProjectTree.openProjectTreeContainer
                   ‣ ProjectTree.openProjectTreeContainer waitLeftToolbarButtonPresence
                 ▼ Ide.waitLeftToolbarButton
                   ‣ DriverHelper.waitVisibility By(xpath, //div[@id='theia-left-content-panel']//ul[@class='p-TabBar-content']//li[@title[contains(.,'Explorer')] and contains(@id, 'shell-tab')])
                   ‣ DriverHelper.waitVisibility - Element is located and is visible.
                   ‣ ProjectTree.openProjectTreeContainer waitForExplorerToolbarButton
                   ‣ DriverHelper.waitVisibilityBoolean By(xpath, //div[@id='theia-left-content-panel']//ul[@class='p-TabBar-content']//li[@title[contains(.,'Explorer')] and contains(@id, 'shell-tab') and contains(@class, 'p-mod-current')])
                   ‣ DriverHelper.isVisible By(xpath, //div[@id='theia-left-content-panel']//ul[@class='p-TabBar-content']//li[@title[contains(.,'Explorer')] and contains(@id, 'shell-tab') and contains(@class, 'p-mod-current')])
                 ▼ ProjectTree.openProjectTreeContainer leftToolbarButtonActive:true
                 ▼ ProjectTree.waitProjectTreeContainer
                   ‣ DriverHelper.waitPresence By(css selector, #theia-left-side-panel #explorer-view-container--files .theia-TreeContainer)
             1) Wait for workspace readiness
                   ‣ FullTitle:The "VscodeXmlPlugin" userstory Create workspace Wait for workspace readiness
                   ‣ FullTitleSanitized:The_VscodeXmlPlugin_userstory_Create_workspace_Wait_for_workspace_readiness
                   ‣ TestTitle:Wait for workspace readiness
                   ‣ TestTitleSanitized:Wait_for_workspace_readiness
         [ERROR] CodereadyReporter runner.on.fail: The "VscodeXmlPlugin" userstory Create workspace Wait for workspace readiness failed after 302666ms
         Additional information (logs, dumps, screenshots) you can find in the
         "./report/The_VscodeXmlPlugin_userstory_Create_workspace_Wait_for_workspace_readiness" folder.
       
       
         3 passing (6m)
         1 failing
       
         1) The "VscodeXmlPlugin" userstory
              Create workspace
                Wait for workspace readiness:
            TimeoutError: Exceeded the maximum number of checking attempts, project has not been imported [unable to locate project root folder]
             at ProjectTree.waitProjectImported (/tmp/e2e-codeready/node_modules/@eclipse-che/che-e2e/dist/pageobjects/ide/ProjectTree.js:198:27)
             at runMicrotasks (<anonymous>)
             at processTicksAndRejections (node:internal/process/task_queues:96:5)
             at async Context.<anonymous> (/tmp/e2e-codeready/node_modules/@eclipse-che/che-e2e/dist/testsLibrary/ProjectAndFileTests.js:53:13)
       


      Screencast: output (2).mp4
       

       

        1. output (2).mp4
          3.88 MB
          Dmytro Nochevnov
        2. Screenshot from 2022-07-11 11-27-42.png
          191 kB
          Dmytro Nochevnov

              sskoryk Serhii Skoryk
              yogitakulkarni Yogita Kulkarni (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: