1

Because my all case run by jenkins and I have the default url on karate-config.js.

But the jenkins job should support other url, so I want to pass the url address dynamic.

I know env, but I don't know how set it?

thanks!

1 Answer 1

2

Pass it as a Java system property:

-D my.url=http://foo.bar

And in Karate:

var url = karate.properties['my.url'];

Please refer: https://github.com/intuit/karate/issues/547

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.