reportportal / agent-java-karate

Karate integration for ReportPortal
Apache License 2.0
10 stars 16 forks source link

How to use karate-config.js file with agent-java-karate project #5

Closed RG108 closed 7 months ago

RG108 commented 5 years ago

Please note that I installed all the RP dependencies and scripts are working fine. Thanks for that. I had another inquiry which is that karate-config.js file is not getting read by the sample project. I put URL reference of the services in karate-config.js which I am calling through feature file like this Scenario: create access token Given url oauth1 + '.uk' + oauth2 And path '/token' And form field client_id = '***' And form field client_secret = '' And form field grant_type = '' When method post Then status 200 Where oauth1 & oauth2 are the config value which are present in karate-config.js file.

While running the project I am getting below error: �[31mjava.lang.RuntimeException: javascript evaluation failed: oauth1 + '.uk' + oauth2 Kindly suggest !

RG108 commented 5 years ago

Hi @filland , @rahul267 , Could you tell me please when we can have report portal agent-java-karate latest version? As the karate has 0.9.2 release which is not compatible with the agent due to that the above issue appeared.

HardNorth commented 7 months ago

@RG108 I don't believe that it's something related to ReportPortal and Karate integration for ReportPortal. Please address this question to corresponding community, E.G. Karate.