In most of the example in the feature file of karate as:
Background:
* url authURL
* path 'token'
* form field grant_type = 'password'
* form field username = 'username'
* form field password = 'password'
* form field client_id = 'appId'
* form field client_secret = 'appSecret'
* form field scope = 'your_App_Scope'
I wanted to write only GET/POST related tests in karate and define this client in Java code and just use that in GET/POST call in karate feature file. Is there any way to do this?
Note: I do not want to replace just URL rather I want to use the whole HTTP client which is defined in java code in karate test file.