2 types of test cases I have written:
To access the endpoints, valid token is required and I am generating the token using spring boot test. I want to use the same token for karate framework but not sure how to pass it as a parameter so that I will use it in my feature file. We are using client-credentials for auth.enter image description here I want to pass token in below mentioned karate test case:
Our team was using the java code to generate the JWT token so I just called that java method in my karate test case and it worked.
Note: We have an option to call java method in our karate test case. I was not aware about it.