Skip to content

Commit

Permalink
add more tests for the graal troubles #1558
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrthomas committed Apr 18, 2021
1 parent 124da2c commit f3b8ec9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function fn() {
};
var result = karate.callSingle('call-single-from-config.feature', config);
config.message = result.response.message;
// this will throw the [Multi threaded access requested by thread xxx but is not allowed for language(s) js.] error
// this used to throw the [Multi threaded access requested by thread xxx but is not allowed for language(s) js.] error
config.Hello = result.Hello;
var result2 = karate.callSingle('call-single-from-config2.feature', result);
config.message2 = result2.message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ Background:
# background http builder should work even for a dynamic scenario outline
* url serverUrl
* def data = [ { name: 'value1' }, { name: 'value2' }, { name: 'value3' }, { name: 'value4' } ]
# java object that comes from a callSingle in the config
* def helloClass = Hello

Scenario Outline:
* match functionFromKarateBase() == 'fromKarateBase'
* path 'fromfeature'
* method get
* status 200
* match response == { message: 'from feature' }
# use java object from background, callSingle, config
* match helloClass.sayHello('from the other side') == 'hello from the other side'
* match helloClass.sayHello(name) == 'hello ' + name

Examples:
| data |

0 comments on commit f3b8ec9

Please sign in to comment.