Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-2731

Sanity API Test - xpath expression is incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Frankfurt Release
    • Frankfurt Release
    • None
    • None

      The String

      private static final String DATA_TESTS_ID = "//*[@data-tests-id='";
      

      in org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils class is used as a format String, but no parameter is expected in the expression, breaking all XPATH selectors in the class, eg.:

      return getDriver().findElement(By.xpath(String.format(DATA_TESTS_ID, dataTestId, "']")));
      

      This is breaking the CI UI test cases.

      Fix the format so the selectors in the class works.

      This was introduced by SDC-2724.

            andre.schmid andre.schmid
            andre.schmid andre.schmid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: