Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-8517

Create Non-navigation versions of the LegacyIT Smoke tests

    Details

    • Type: Task Task
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0-rc1
    • Fix Version/s: 2.2.1
    • Component/s: Quality Assurance
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-9035Create Navigation and Non-Navigation test for remaining smoke tests that extend UpgradedSeleniumITBase
      KULRICE-8384Create new travel Smoke Tests for those under edu.samplu.krad.validationmessagesview that extend UpgradedSeleniumITBase and don't yet have a Legacy version
      KULRICE-8563Create LegacyIT tests from Manual Tests on Wiki which do not yet have LegacyITs
      KULRICE-8278Create new travel Smoke Tests for those that extend UpgradedSeleniumITBase and don't yet have a Legacy version
      KULRICE-8279Create new mainmenu Smoke Tests for those that extend UpgradedSeleniumITBase and don't yet have a Legacy version
      KULRICE-8280Create new admin.test Smoke Tests for those that extend UpgradedSeleniumITBase and don't yet have a Legacy version
      KULRICE-8282Create new krad Smoke Tests for those that extend UpgradedSeleniumITBase and don't yet have a Legacy version
      KULRICE-8382Create new travel Smoke Tests for those under edu.samplu.admin.test that extend UpgradedSeleniumITBase and don't yet have a Legacy version
      KULRICE-8383Create new travel Smoke Tests for those under edu.samplu.krad.compview that extend UpgradedSeleniumITBase and don't yet have a Legacy version
      KULRICE-8385Create new travel Smoke Tests for those under edu.samplu.travel krad and test validationmessagesview that extend UpgradedSeleniumITBase and don't yet have a Legacy version
    • Rice Team:
      QA
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      Create versions of the LegacyITs named WDIT that don't navigate, but use the direct url, to the page under test. See IdentityRoleWDIT, ConfigNameSpaceWDIT, MaintenanceAddDeleteFiscalOfficerWDIT

      The steps I have been following have been:
      1. copy LegacyIT to WDIT
      2. make WDIT extend WebDriverLegacyITBase
      3. get the url to the page:
      http://env11.rice.kuali.org/portal.do?channelTitle=Namespace&channelUrl=http://env11.rice.kuali.org/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.rice.coreservice.impl.namespace.NamespaceBo&docFormKey=88888888&returnLocation=http://env11.rice.kuali.org/portal.do&hideReturnLink=true
      4. in the WDIT, setup the url as the TEST_URL like:

          public static final String TEST_URL = ITUtil.PORTAL + "?channelTitle=Namespace&channelUrl=" + ITUtil.getBaseUrlString() +
                  "/kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.rice.coreservice.impl.namespace.NamespaceBo&docFormKey=88888888&returnLocation=" +
                  ITUtil.PORTAL_URL + "&hideReturnLink=true";
      

      5. and (still in the WDIT) have it be returned by getTestUrl:

      @Override
      public String getTestUrl() {
          return TEST_URL;
      }
      

      6. remove the navigation code (goto methods) from WDIT tests.
      7. extract test code from WDIT into WebDriverLegacyIT as a protected method which the LegacyIT will also be calling. You might need to add a:

          selectFrame("iframeportlet");
      

      to extracted test methods, this tries to select the frame, but won't throw an exception if that frame doesn't exist (i.e. already in it).
      8. create new navigation in the WDIT should be replaced with the direct link create new page.
      9. remove any unneeded imports from the LegacyIT and WDIT.

      As an example you can see https://fisheye.kuali.org/changelog/rice?cs=35862

        Activity

        Hide
        Viral Chauhan (Inactive) added a comment - - edited

        Test added to trunk. Build stable.
        Modified WebDriverLegasyITBase to accomodate *WDITies test cases

        Show
        Viral Chauhan (Inactive) added a comment - - edited Test added to trunk. Build stable. Modified WebDriverLegasyITBase to accomodate *WDITies test cases
        Hide
        Viral Chauhan (Inactive) added a comment -

        Checked in

        Show
        Viral Chauhan (Inactive) added a comment - Checked in

          People

          • Assignee:
            Viral Chauhan (Inactive)
            Reporter:
            Erik Meade
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel