-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JIRA comments update - not for all JIRA Issue Types #105
Comments
Ok let me see If I can reproduce it. just to have more information, u are trying to use the 2 link integration, that means add a comment to the Jira ticket about a test execution. |
yes. I am trying 2 way integration with JIRA. |
Are u using the requirement tag provider for something? |
No. I am not using the requirement tag provider. Below is my serenity.properties related to JIRA integration: |
remove the net.serenity-bdd:serenity-jira-requirements-provider:1.12.0 dependency |
Tried removing the net.serenity-bdd:serenity-jira-requirements-provider:1.12.0 dependency, but no luck. Getting the same error |
mmm, can u paste the stack trace again |
18:01:25.538 [pool-3-thread-1] WARN n.t.c.r.RequirementsTagProvider - Failed to load requirements: net.serenitybdd.plugins.jira.model.JQLException: java.lang.NullPointerException com.automation.DynamicTestSuite0 > classMethod FAILED |
Ok, I will upload the fix, the problem is updating jira status, same thing like comments, Author node has change, |
Fixed by #106. |
Please can you guide next steps. i.e. not sure how to pull the fix 106 into my project |
Well u have to wait for @wakaleo to merge it, but if u want to see if it works, you can clone my fork, and install locally. |
once merged will it be available in JIRA plugin 1.12.0? |
@coumarine the PR was merge, please let me know if it works. I think u have to update ur serenity-jira version. |
Thanks @ricardorlg-aval What is the version number please? |
I'm not sure, u should ask @wakaleo when the new version is going to be in maven central |
@wakaleo any update on when is going to be the release with the fix? |
@ricardorlg-aval This is in continuation to ticket below
serenity-bdd/serenity-core#2031
JIRA Plugins used:
jira: "net.serenity-bdd:serenity-jira-plugin:1.12.0"
jirarequirements: 'net.serenity-bdd:serenity-jira-requirements-provider:1.12.0'
Below is the latest stack trace:
com.cmp.automation.prd.DynamicTestSuite0 > classMethod FAILED
java.lang.NullPointerException
at net.serenitybdd.plugins.jira.domain.Author.fromJsonString(Author.java:29)
at net.serenitybdd.plugins.jira.domain.IssueComment.fromJsonString(IssueComment.java:214)
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.getComments(JerseyJiraClient.java:783)
at net.serenitybdd.plugins.jira.service.JiraIssueTracker.getCommentsFor(JiraIssueTracker.java:93)
at net.serenitybdd.plugins.jira.JiraUpdater.newOrUpdatedCommentFor(JiraUpdater.java:128)
at net.serenitybdd.plugins.jira.JiraUpdater.updateIssue(JiraUpdater.java:93)
at net.serenitybdd.plugins.jira.JiraUpdater.lambda$updateIssueStatus$0(JiraUpdater.java:75)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:401)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:734)
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at net.serenitybdd.plugins.jira.JiraUpdater.updateIssueStatus(JiraUpdater.java:74)
at net.serenitybdd.plugins.jira.JiraStepListener.testSuiteFinished(JiraStepListener.java:89)
at net.thucydides.core.steps.StepEventBus.testSuiteFinished(StepEventBus.java:612)
at cucumber.runtime.formatter.SerenityReporter.lambda$assureTestSuiteFinished$16(SerenityReporter.java:772)
at java.util.Optional.ifPresent(Optional.java:159)
at cucumber.runtime.formatter.SerenityReporter.assureTestSuiteFinished(SerenityReporter.java:770)
at cucumber.runtime.formatter.SerenityReporter.handleTestRunFinished(SerenityReporter.java:357)
at cucumber.runtime.formatter.SerenityReporter.lambda$new$6(SerenityReporter.java:150)
at cucumber.runner.AbstractEventPublisher.send(AbstractEventPublisher.java:45)
at cucumber.runner.AbstractEventBus.send(AbstractEventBus.java:9)
at cucumber.runner.TimeServiceEventBus.send(TimeServiceEventBus.java:3)
at net.serenitybdd.cucumber.CucumberWithSerenity$1.evaluate(CucumberWithSerenity.java:203)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:110)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)
at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
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 org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:118)
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 org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:412)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
at java.lang.Thread.run(Thread.java:748)
The text was updated successfully, but these errors were encountered: