How to overwrite a karate-config.js variable thru a Scenario. I tried using Set, but did not work. My karate-config.js and feature files are as below: Though not getting any error but cpNumber value did not change, printing 234455 not 123. Can some-one pls help me over-writing a karate-config.js variable.
function fn(){
var config = {
cpNumber : "234455"
}
return config
}
Scenario: Update scenario
* karate.set(cpNumber, "123")
* print cpNumber