reportportal / agent-java-karate

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

Adding plugin #1

Closed rahul267 closed 5 years ago

filland commented 5 years ago

@rahul267 hi, thanks for the PR. I tried to run the test in your project and it failed

rahul267 commented 5 years ago

Test will fail. Just put your report portal config in report portal.properties and run . Result and logs will populate .

On Fri, May 10, 2019, 21:39 Alexey K notifications@github.com wrote:

@rahul267 https://github.com/rahul267 hi, thanks for the PR. I tried to run the test in your project and it failed

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/reportportal/agent-java-karate/pull/1#issuecomment-491343638, or mute the thread https://github.com/notifications/unsubscribe-auth/ACJZ64ZWYT6BEZB26SYHHYDPUWM3LANCNFSM4HMB2U7Q .

filland commented 5 years ago

@rahul267 i am sorry, my bad. I managed to run the test and i it is reported to RP but still get an exception:

java.lang.RuntimeException: javascript evaluation failed: https://jsonplaceholder.typicode.com/todos at com.intuit.karate.ScriptBindings.eval(ScriptBindings.java:116) at com.intuit.karate.ScriptBindings.updateBindingsAndEval(ScriptBindings.java:104) at com.intuit.karate.ScriptBindings.evalInNashorn(ScriptBindings.java:89) at com.intuit.karate.Script.evalJsExpression(Script.java:362) at com.intuit.karate.Script.evalKarateExpression(Script.java:284) at com.intuit.karate.Script.evalKarateExpression(Script.java:170) at com.intuit.karate.StepDefs.url(StepDefs.java:102) at ✽.* url https://jsonplaceholder.typicode.com/todos(feature/Test.feature:4) Caused by: javax.script.ScriptException: :1:42 Expected ; but found eof https://jsonplaceholder.typicode.com/todos ^ in at line number 1 at column number 42 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:470) at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:537) at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:524) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155) at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:233) at com.intuit.karate.ScriptBindings.eval(ScriptBindings.java:109) at com.intuit.karate.ScriptBindings.updateBindingsAndEval(ScriptBindings.java:104) at com.intuit.karate.ScriptBindings.evalInNashorn(ScriptBindings.java:89) at com.intuit.karate.Script.evalJsExpression(Script.java:362) at com.intuit.karate.Script.evalKarateExpression(Script.java:284) at com.intuit.karate.Script.evalKarateExpression(Script.java:170) at com.intuit.karate.StepDefs.url(StepDefs.java:102) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at cucumber.runtime.Utils$1.call(Utils.java:40) at cucumber.runtime.Timeout.timeout(Timeout.java:16) at cucumber.runtime.Utils.invoke(Utils.java:34) at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:38) at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37) at com.intuit.karate.cucumber.CucumberUtils.runStep(CucumberUtils.java:254) at com.intuit.karate.cucumber.KarateRuntime.runStep(KarateRuntime.java:80) at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44) at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39) at cucumber.runtime.model.CucumberScenario.runBackground(CucumberScenario.java:59) at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:42) at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:102) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70) at KarateReportPortalRunner.runChild(KarateReportPortalRunner.java:126) at KarateReportPortalRunner.runChild(KarateReportPortalRunner.java:37) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at com.intuit.karate.junit4.Karate.run(Karate.java:129) at KarateReportPortalRunner.run(KarateReportPortalRunner.java:131) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) Caused by: jdk.nashorn.internal.runtime.ParserException: :1:42 Expected ; but found eof https://jsonplaceholder.typicode.com/todos ^ at jdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:294) at jdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:279) at jdk.nashorn.internal.parser.AbstractParser.expectDontAdvance(AbstractParser.java:350) at jdk.nashorn.internal.parser.AbstractParser.expect(AbstractParser.java:337) at jdk.nashorn.internal.parser.Parser.statement(Parser.java:931) at jdk.nashorn.internal.parser.Parser.getStatement(Parser.java:560) at jdk.nashorn.internal.parser.Parser.labelStatement(Parser.java:1761) at jdk.nashorn.internal.parser.Parser.statement(Parser.java:948) at jdk.nashorn.internal.parser.Parser.sourceElements(Parser.java:773) at jdk.nashorn.internal.parser.Parser.program(Parser.java:709) at jdk.nashorn.internal.parser.Parser.parse(Parser.java:283) at jdk.nashorn.internal.parser.Parser.parse(Parser.java:249) at jdk.nashorn.internal.runtime.Context.compile(Context.java:1284) at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:1251) at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:627) at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:535) ... 51 more

RG108 commented 5 years ago

@avarabyeu May I know if Karate can be integrated with Report portal successfully, please?

rahul267 commented 5 years ago

I have resolved all the issues . Please approve the pull request .

On Sat, May 11, 2019 at 5:03 PM Alexey K notifications@github.com wrote:

@filland commented on this pull request.

In src/test/Runner/KarateRunner.java https://github.com/reportportal/agent-java-karate/pull/1#discussion_r283092974 :

@@ -0,0 +1,11 @@ +//package test.java.utilities;

if we do not need this class it should not be here

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/reportportal/agent-java-karate/pull/1#pullrequestreview-236373744, or mute the thread https://github.com/notifications/unsubscribe-auth/ACJZ646O6M6LTEWYD3TJ2YDPU2VJ5ANCNFSM4HMB2U7Q .

-- Rahul Kumar || Senior Test Engineer

Mob :8826013218

rahul267 commented 5 years ago

Yes , integrated .

On Tue, May 14, 2019 at 5:04 PM Ranjan Gupta notifications@github.com wrote:

@avarabyeu https://github.com/avarabyeu May I know if Karate can be integrated with Report portal successfully, please?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/reportportal/agent-java-karate/pull/1?email_source=notifications&email_token=ACJZ643Y4AQBLVDVKNXLHPTPVKPSVA5CNFSM4HMB2U72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVLGCGA#issuecomment-492200216, or mute the thread https://github.com/notifications/unsubscribe-auth/ACJZ644ZN2XIGCXKZ6R66V3PVKPSVANCNFSM4HMB2U7Q .

-- Rahul Kumar || Senior Test Engineer

Mob :8826013218

avyas commented 5 years ago

@rahul267 it does work! I guess it will work well for the Karate version before exiting from cucumber, I think that was 0.9 ! You planning to bump to latest karate version?

filland commented 5 years ago

@avyas sure, we are going to do this soon

avyas commented 5 years ago

Hello @filland / @rahul267

Is there any update on supporting 0.9.x version of karate.

nilesh-kulkarni-continuum commented 4 years ago

@filland / @rahul267 I am interested to know if agent-java-karate support for 0.9.x karate version is available now?

RG108 commented 4 years ago

I tried the RP integration with Karate's latest version I believe in the month of June or July 2019 but it was failing in the scenario where I need to pass different URLs through the karate-config.js file. I remembered this issue was replicating every time so I left using it. @rahul267 I think I was in touch with you on this issue. Could you please tell us if this will be taken into consideration soon or not, please?