You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from 1.2.1.RC2 to 1.3.0.RC2, my javascript generator function used by Scenario Outline is somehow not visible to karate anymore.
All works fine again after downgrade.
Here is an example code:
Background:
* callonce read('classpath:features_common/ReadQuoteData.feature')
# generator function that repeats all the quotes as per the supplied number of execution cycles
* def quoteProducer =
"""
function(i) {
if (i == quoteData.length * executionCycles) {
return null;
} else {
return quoteData[i % quoteData.length];
}
}
"""
Scenario Outline:
* def testQuote = __row
* print "processing quote " + __num + " (" + testQuote.id + ")"
# call configured channel-specific test suite
* def getQuoteResult = call read("../featuresXXX")
Examples:
| quoteProducer |
Error message produced in 1.3.0.RC2:
======================================================
>>> failed features:
js failed:
>>>>
01: quoteProducer
<<<<
org.graalvm.polyglot.PolyglotException: ReferenceError: "quoteProducer" is not defined
- <js>.:program(Unnamed:1)
classpath:features_apt/AptTestSuite.feature:38
<<<
The text was updated successfully, but these errors were encountered:
mattkoss
changed the title
Javascript generator function "not found" after upgrade to 1.3.0.RC2
Javascript generator function "not defined" after upgrade to 1.3.0.RC2
Sep 8, 2022
After upgrading from 1.2.1.RC2 to 1.3.0.RC2, my javascript generator function used by Scenario Outline is somehow not visible to karate anymore.
All works fine again after downgrade.
Here is an example code:
Error message produced in 1.3.0.RC2:
The text was updated successfully, but these errors were encountered: