Perfecto-Quantum / Quantum-Starter-Kit

Get started with Quantum! Clone or download this repository to start, contains examples of tests and step definitions.
MIT License
58 stars 80 forks source link

Scenario Outline - Examples causing java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 #38

Closed chemerson closed 6 years ago

chemerson commented 6 years ago

Opened new ticket for this under main Quantum project: https://github.com/Project-Quantum/Quantum/issues/47

Seems like the latest version of the starter kit has broken the ability to use scenario outlines. This error is thrown no matter what data format is used:

▀ ▀ ▀ END STEP: And I select "Bank or Invest Login" from list id "account" ▀ ▀ ▀ [{username}] [XP 10]: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 [XP 10]: Executing screenshot parameters: {}

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

at .Then I enter "${username}" to "username.ally.textbox"(src/main/resources/scenarios/Responsive.feature:9)
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at com.quantum.listeners.QuantumReportiumListener.getProcessStepDescription(QuantumReportiumListener.java:326)

These are the versions of the components in my POM file:

src/main/resources/config
    <testngXmlFile>testng_web.xml</testngXmlFile>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <reportium-sdk.version>1.2.0</reportium-sdk.version>
    <selenium.version>2.53.1</selenium.version>
    <testng.version>6.9.10</testng.version>
    <cukes.version>1.2.5</cukes.version>
    <qaf.version>2.1.13</qaf.version>
    <qafsupport.version>2.1.11</qafsupport.version>
    <quantum.version>1.14</quantum.version>
    <org.json.version>20160810</org.json.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
kulin24 commented 6 years ago

Let us please track this issue in the Quantum project. This feature is working for me right now so closing this.