reportportal / agent-java-karate

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

karate version 0.9.3 not working with reportPortal #8

Closed guptapranay closed 9 months ago

guptapranay commented 5 years ago

Team, For karate 0.9.3, reportPortalIo is not working. Could you please let us know, how to resolve this?

supadhyaywebuy commented 5 years ago

@guptapranay did you got resolution for compatibility issue?

DzmitryHumianiuk commented 5 years ago

@guptapranay any details?

guptapranay commented 5 years ago

Hi @DzmitryHumianiuk @supadhyaywebuy

No, I still have this issue. Downgrading karate to 0.7.0 works well with agent-java-karate. But with higher versions, it fails.

DzmitryHumianiuk commented 5 years ago

@Yumfriez @HardNorth can you please take a look?

karthikbits commented 5 years ago

Hi have developed a new report portal karate plugin https://github.com/karthikbits/reportportal-karate . This uses the latest event enhanced events framework in Karate. It needs 0.9.5.RC3. Doing some testing within my company.

guptapranay commented 4 years ago

@Yumfriez any updates? Or @karthikbits is your the official one?

workwithprashant commented 4 years ago

Hi have developed a new report portal karate plugin https://github.com/karthikbits/reportportal-karate . This uses the latest event enhanced events framework in Karate. It needs 0.9.5.RC3. Doing some testing within my company.

@karthikbits Were you able to make it work with karate 0.9.5.RC5 ?

DzmitryHumianiuk commented 4 years ago

@workwithprashant does 0.9.5RC5 compatible with 0.9.4? Or it has braking change as well?

workwithprashant commented 4 years ago

@DzmitryHumianiuk 0.9.5.RC5 is not compatible with 0.9.4. I have made few code changes to https://github.com/karthikbits/reportportal-karate to make it work properly with 0.9.5.RC5 except that scenario steps does NOT display in order on ReportPortal. I am troubleshooting and need to fix it soon.

karthikbits commented 4 years ago

Can u please raise a pull request to merge our changes. Thanks,Karthik On Saturday, 8 February, 2020, 10:11:45 pm IST, workwithprashant notifications@github.com wrote:

@DzmitryHumianiuk 0.9.5.RC5 is not compatible with 0.9.4. I have made few code changes to https://github.com/karthikbits/reportportal-karate to make it work properly with 0.9.5.RC5 except that scenario steps does display in order on ReportPortal.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

DzmitryHumianiuk commented 4 years ago

Well, before it merged - it should be tested and verified. my main concern is that active version changes so quick and each new version is not backward compatible with previous.

and still, they have Release Candidate label, which not guarantee it stability. At the moment, we have requests to make it work with 0.9.3, 0.9.4 and now with 0.9.5

it's a huge overhead to keep it stable and release new packages each time, when new RC or 0.9.xxxx version will be avaialble.

In general, are there any public roadmap regarding 1.0.0 stable version of karate available?

evgenytkachenko commented 4 years ago

@karthikbits do you have examples of how you use karate-agent you have built? I mean how to use it in the Test Runner ?

evgenytkachenko commented 4 years ago

@workwithprashant did you make it work with 0.9.5 properly?

evgenytkachenko commented 4 years ago

@workwithprashant @karthikbits how did you make https://github.com/karthikbits/reportportal-karate work with 0.9.5 ?

workwithprashant commented 4 years ago

@evgenytkachenko I had to use client-java to make it work with Karate 0.9.5. It will be nice if we can have agent working for Karate since I have to keep updating client-java implementation for every new feature Reportportal releases.

anilsky commented 4 years ago

@karthikbits .. may I know the reason behind for your non responsiveness? i am looking forward for the solution to the same (RP integration with Karate 0.9.5) .. thanks in advance

anilsky commented 4 years ago

@evgenytkachenko I had to use client-java to make it work with Karate 0.9.5. It will be nice if we can have agent working for Karate since I have to keep updating client-java implementation for every new feature Reportportal releases.

@workwithprashant do you have an example to share please ?

anilsky commented 4 years ago

@workwithprashant can you please share how did you integrate 0.9.5 with RP using client-java ? (gradle or maven ?)

govindsky commented 4 years ago

Please support if any solution .

issues with Report portal. IO (KarateReportPortalRunner) ==> Integration with karate 0.8.0.1 .
karate Runner class extends ==> KarateReportPortalRunner.class . import cucumber.api.CucumberOptions; import org.junit.runner.RunWith;

@RunWith(KarateReportPortalRunner.class)

@CucumberOptions(features = "classpath:resources",
        plugin = { "pretty","com.epam.reportportal.cucumber.ScenarioReporter" ,"com.epam.reportportal.cucumber.StepReporter" })

public class TestRunner {
}

when You execute with above option this Test Runner its failing following error

.java.lang.NullPointerException
    at com.intuit.karate.cucumber.KarateHtmlReporter.karateStepProceed(KarateHtmlReporter.java:191)
    at com.intuit.karate.cucumber.KarateReporterBase.karateStep(KarateReporterBase.java:105)
    at com.intuit.karate.cucumber.KarateReporterBase.callBegin(KarateReporterBase.java:77)
    at com.intuit.karate.Script.evalFeatureCall(Script.java:1679)
    at com.intuit.karate.Script.evalFeatureCall(Script.java:1662)
    at com.intuit.karate.Script.call(Script.java:1599)
    at com.intuit.karate.Script.callAndUpdateConfigAndAlsoVarsIfMapReturned(Script.java:1690)
    at com.intuit.karate.StepDefs.callAndUpdateConfigAndVars(StepDefs.java:582)
workwithprashant commented 4 years ago

@workwithprashant can you please share how did you integrate 0.9.5 with RP using client-java ? (gradle or maven ?)

@anilsky I have created karate demo Maven project which has integration with Reportportal for Karate version 0.9.5+ Karate-Reportportal-Demo

DzmitryHumianiuk commented 4 years ago

@workwithprashant don't hesitate to send us pull request with latest version )

anilsky commented 4 years ago

@DzmitryHumianiuk @workwithprashant We have used @workwithprashant solution to integrate RP with Karate 0.9.5 and it would be beneficial for wider community if this can be reviewed and merged to master much appreciated

kirksl commented 4 years ago

@DzmitryHumianiuk @workwithprashant appreciate it if i can work with you to determine and solve all issues with this integration. can you help me understand what the remaining issues are. @workwithprashant are you planning on submitting your changes to support 0.9.6+ into this repo? i'd also like to understand why the integration keeps breaking, create a specific list of the problems and see if we can create a level of harmony between Karate and ReportPortal projects. i'd be happy to facilitate resolution of issues within the Karate project.

kirksl commented 3 years ago

@DzmitryHumianiuk @workwithprashant i believe the reason for instability has been with the method of implementation to integrate RP to Karate. i haven't had the time to create a clean abstration with ReportPortalAppender however i have implemented a solution below which should prove to be robust. possibly this could be insightful for a ReportPortalAppender solution in the future. https://github.com/kirksl/karate-maven-gradle

HardNorth commented 9 months ago

Please use karate of version 1.3.1 and newer. Earlier versions of Karate are not planned for support.

To use Karate with ReportPortal add the latest official Agent version and setup reporting according to documentation to address the issue: https://github.com/reportportal/agent-java-karate/releases/tag/5.0.0 https://github.com/reportportal/agent-java-karate/blob/develop/README.md