Skip to content
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 comment not updated #95

Open
juriiiko opened this issue Mar 15, 2019 · 0 comments
Open

JIRA comment not updated #95

juriiiko opened this issue Mar 15, 2019 · 0 comments

Comments

@juriiiko
Copy link

juriiiko commented Mar 15, 2019

Hi,

First time here and first time user of Serenity BDD so please bear with me. I have followed every example to set two-way communication with JIRA. But this doesn't work as JIRA issue is not updated with test results. I have issue type story in JIRA, which is added to the test as a link @Issue ("#SVC-401").

Please let me know what I can do to solve this problem.

pom.xml file content (partial):


net.serenity-bdd
serenity-core
${serenity.version}
test


net.serenity-bdd
serenity-screenplay
${serenity.version}
test


net.serenity-bdd
serenity-screenplay-webdriver
${serenity.version}
test


net.serenity-bdd
serenity-junit
${serenity.version}
test


org.slf4j
slf4j-simple
1.7.7
test


junit
junit
4.12
test



net.serenity-bdd
serenity-jira-plugin
1.11.0



net.serenity-bdd
serenity-jira-requirements-provider
1.11.0

SearchByKeywordStory.java (partial):
@test
@issue ("#SVC-401")
public void search_results_should_show_the_search_term_in_the_title() {

    givenThat(anna).wasAbleTo(openTheApplication);

serenity.properties (partial):

JIRA setup

jira.url=https://jira.company.com/jira
jira.project=SVC
serenity.public.url=file:///C:/cygwin64/home/user/todomvctests/target/site/serenity
jira.username=username
jira.password=password

Error thrown when running mvn clean verify:
[main] INFO net.serenitybdd.plugins.jira.JiraUpdater - Updating comments for issue SVC-401
[main] INFO net.serenitybdd.plugins.jira.JiraUpdater - WIKI Rendering activated: true
[main] ERROR net.serenitybdd.junit.runners.SerenityRunner - Test event bus error: 255
javax.ws.rs.ProcessingException: 255
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:261)
at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:684)
at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:681)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:681)
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:411)
at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:311)
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.getComments(JerseyJiraClient.java:773)
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:552)
at net.serenitybdd.junit.runners.SerenityRunner.notifyTestSuiteFinished(SerenityRunner.java:286)
at net.serenitybdd.junit.runners.SerenityRunner.run(SerenityRunner.java:258)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 255
at org.glassfish.jersey.internal.util.Base64.encode(Base64.java:100)
at org.glassfish.jersey.internal.util.Base64.encodeAsString(Base64.java:169)
at org.glassfish.jersey.client.authentication.BasicAuthenticator.calculateAuthentication(BasicAuthenticator.java:88)
at org.glassfish.jersey.client.authentication.BasicAuthenticator.filterRequest(BasicAuthenticator.java:103)
at org.glassfish.jersey.client.authentication.HttpAuthenticationFilter.filter(HttpAuthenticationFilter.java:187)
at org.glassfish.jersey.client.ClientFilteringStages$RequestFilteringStage.apply(ClientFilteringStages.java:115)
at org.glassfish.jersey.client.ClientFilteringStages$RequestFilteringStage.apply(ClientFilteringStages.java:103)
at org.glassfish.jersey.process.internal.Stages.process(Stages.java:171)
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:252)
... 39 more
[pool-3-thread-1] WARN net.thucydides.core.requirements.RequirementsTagProvider - Failed to load requirements: net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getParentRequirementOf(Lnet/thucydides/core/model/TestOutcome;)Lcom/google/common/base/
Optional;
java.lang.AbstractMethodError: net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getParentRequirementOf(Lnet/thucydides/core/model/TestOutcome;)Lcom/google/common/base/Optional;
at net.thucydides.core.requirements.ParentRequirementsProvided.forOutcome(ParentRequirementsProvided.java:27)
at net.thucydides.core.requirements.BaseRequirementsService.getParentRequirementOf(BaseRequirementsService.java:146)
at net.thucydides.core.requirements.BaseRequirementsService.getParentRequirementFor(BaseRequirementsService.java:63)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addParentRequirmentFieldToContext(HtmlAcceptanceTestReporter.java:170)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addTestOutcomeToContext(HtmlAcceptanceTestReporter.java:164)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.generateReportFor(HtmlAcceptanceTestReporter.java:109)
at net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:255)
at net.thucydides.core.reports.ReportService.access$100(ReportService.java:32)
at net.thucydides.core.reports.ReportService$1.run(ReportService.java:186)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[pool-3-thread-1] WARN net.thucydides.core.requirements.RequirementsTagProvider - Failed to load requirements: net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getParentRequirementOf(Lnet/thucydides/core/model/TestOutcome;)Lcom/google/common/base/
Optional;
java.lang.AbstractMethodError: net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getParentRequirementOf(Lnet/thucydides/core/model/TestOutcome;)Lcom/google/common/base/Optional;
at net.thucydides.core.requirements.ParentRequirementsProvided.forOutcome(ParentRequirementsProvided.java:27)
at net.thucydides.core.requirements.BaseRequirementsService.getParentRequirementOf(BaseRequirementsService.java:146)
at net.thucydides.core.requirements.BaseRequirementsService.getAncestorRequirementsFor(BaseRequirementsService.java:93)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addBreadcrumbs(HtmlAcceptanceTestReporter.java:199)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addParentRequirmentFieldToContext(HtmlAcceptanceTestReporter.java:188)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addTestOutcomeToContext(HtmlAcceptanceTestReporter.java:164)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.generateReportFor(HtmlAcceptanceTestReporter.java:109)
at net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:255)
at net.thucydides.core.reports.ReportService.access$100(ReportService.java:32)
at net.thucydides.core.reports.ReportService$1.run(ReportService.java:186)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[pool-3-thread-1] WARN net.thucydides.core.requirements.RequirementsTagProvider - Failed to load requirements: net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getParentRequirementOf(Lnet/thucydides/core/model/TestOutcome;)Lcom/google/common/base/
Optional;
java.lang.AbstractMethodError: net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getParentRequirementOf(Lnet/thucydides/core/model/TestOutcome;)Lcom/google/common/base/Optional;
at net.thucydides.core.requirements.ParentRequirementsProvided.forOutcome(ParentRequirementsProvided.java:27)
at net.thucydides.core.requirements.BaseRequirementsService.getParentRequirementOf(BaseRequirementsService.java:146)
at net.thucydides.core.requirements.BaseRequirementsService.getAncestorRequirementsFor(BaseRequirementsService.java:93)
at net.thucydides.core.tags.BreadcrumbTagFilter.getRequirementBreadcrumbsFrom(BreadcrumbTagFilter.java:52)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addBreadcrumbs(HtmlAcceptanceTestReporter.java:200)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addParentRequirmentFieldToContext(HtmlAcceptanceTestReporter.java:188)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addTestOutcomeToContext(HtmlAcceptanceTestReporter.java:164)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.generateReportFor(HtmlAcceptanceTestReporter.java:109)
at net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:255)
at net.thucydides.core.reports.ReportService.access$100(ReportService.java:32)
at net.thucydides.core.reports.ReportService$1.run(ReportService.java:186)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.635 sec - in net.serenitybdd.tutorials.features.search.SearchByKeywordStory

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[WARNING] File encoding has not been set, using platform encoding Cp1250, i.e. build is platform dependent! The file encoding for reports output files should be provided by the POM property ${project.reporting.outputEncoding}.
[INFO]
[INFO] --- serenity-maven-plugin:1.8.3:aggregate (serenity-reports) @ todomvctests ---
[INFO] current_project.base.dir: C:\cygwin64\home\user\todomvctests
[INFO] Generating test results for 1 tests
[INFO] 0 requirements loaded after 709 ms
[INFO] 0 related requirements found after 714 ms
[INFO] Generating test outcome reports: false
[INFO] Starting generating reports: 773 ms
[INFO] Configured report threads: 20
[INFO] Test results for 1 tests generated in 2016 ms
[INFO]
[INFO] --- maven-failsafe-plugin:2.19.1:verify (default) @ todomvctests ---
[WARNING] File encoding has not been set, using platform encoding Cp1250, i.e. build is platform dependent! The file encoding for reports output files should be provided by the POM property ${project.reporting.outputEncoding}.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.428 s
[INFO] Finished at: 2019-03-15T13:50:43+01:00
[INFO] ------------------------------------------------------------------------

Any help appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant