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

Epics and Stories Tab in serenity report is not getting displayed #88

Open
SerTest3 opened this issue Jun 26, 2018 · 3 comments
Open

Epics and Stories Tab in serenity report is not getting displayed #88

SerTest3 opened this issue Jun 26, 2018 · 3 comments

Comments

@SerTest3
Copy link

SerTest3 commented Jun 26, 2018

Previously Epics and Stories tab were displayed in Serenity report. Currently its not getting displayed.

I see the below error while building the pom.xml

net.serenitybdd.plugins.jira.model.JQLException: java.lang.NullPointerException
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.findByJQL(JerseyJiraClient.java:128) ~[serenity-jira-plugin-1.8.0.jar:?]
at net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getRequirements(JIRARequirementsProvider.java:114) [serenity-jira-requirements-provider-1.8.0.jar:?]
at net.thucydides.core.requirements.RequirementsProvided.by(RequirementsProvided.java:15) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.requirements.MultiSourceRequirementsService.getRequirements(MultiSourceRequirementsService.java:46) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.requirements.BaseRequirementsService.getRequirementTypes(BaseRequirementsService.java:186) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addTestOutcomeToContext(HtmlAcceptanceTestReporter.java:162) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.generateReportFor(HtmlAcceptanceTestReporter.java:109) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:255) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.reports.ReportService.access$100(ReportService.java:32) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.reports.ReportService$1.run(ReportService.java:186) [serenity-core-1.8.19.jar:1.8.19]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_65]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_65]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_65]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65]
Caused by: java.lang.NullPointerException
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.convertToComment(JerseyJiraClient.java:300) ~[serenity-jira-plugin-1.8.0.jar:?]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.commentsIn(JerseyJiraClient.java:290) ~[serenity-jira-plugin-1.8.0.jar:?]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.convertToIssueSummary(JerseyJiraClient.java:279) ~[serenity-jira-plugin-1.8.0.jar:?]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.loadByJQLBatches(JerseyJiraClient.java:153) ~[serenity-jira-plugin-1.8.0.jar:?]
at net.serenitybdd.plugins.jira.client.FindByJQLLoaderUsingBatches.load(FindByJQLLoaderUsingBatches.java:17) ~[serenity-jira-plugin-1.8.0.jar:?]
at net.serenitybdd.plugins.jira.client.FindByJQLLoaderUsingBatches.load(FindByJQLLoaderUsingBatches.java:8) ~[serenity-jira-plugin-1.8.0.jar:?]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3628) ~[guava-20.0.jar:?]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2336) ~[guava-20.0.jar:?]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2295) ~[guava-20.0.jar:?]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2208) ~[guava-20.0.jar:?]
at com.google.common.cache.LocalCache.get(LocalCache.java:4053) ~[guava-20.0.jar:?]
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4057) ~[guava-20.0.jar:?]
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4986) ~[guava-20.0.jar:?]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.findByJQL(JerseyJiraClient.java:124) ~[serenity-jira-plugin-1.8.0.jar:?]
... 14 more
2018-06-26 15:04:39,347 DEBUG JIRARequirementsProvider [pool-7-thread-2] Loading root requirements done: 0
2018-06-26 15:04:39,352 DEBUG ConcurrentRequirementsLoader [pool-7-thread-2] Loading 0 requirements
2018-06-26 15:04:39,352 DEBUG RequirementsTagProvider [pool-7-thread-2] Requirements found:[]
2018-06-26 15:04:39,353 DEBUG JIRARequirementsProvider [pool-7-thread-2] Find parent requirement in JIRA for SmokeTest for Taxation Event APM
2018-06-26 15:04:39,516 DEBUG JIRARequirementsProvider [pool-7-thread-1] No root requirements found (JQL = issuetype = epic and project=GRK
net.serenitybdd.plugins.jira.model.JQLException: java.lang.NullPointerException
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.findByJQL(JerseyJiraClient.java:128) ~[serenity-jira-plugin-1.8.0.jar:?]
at net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getRequirements(JIRARequirementsProvider.java:114) [serenity-jira-requirements-provider-1.8.0.jar:?]
at net.thucydides.core.requirements.RequirementsProvided.by(RequirementsProvided.java:15) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.requirements.MultiSourceRequirementsService.getRequirements(MultiSourceRequirementsService.java:46) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.requirements.BaseRequirementsService.getRequirementTypes(BaseRequirementsService.java:186) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addTestOutcomeToContext(HtmlAcceptanceTestReporter.java:162) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.generateReportFor(HtmlAcceptanceTestReporter.java:109) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:255) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.reports.ReportService.access$100(ReportService.java:32) [serenity-core-1.8.19.jar:1.8.19]
at net.thucydides.core.reports.ReportService$1.run(ReportService.java:186) [serenity-core-1.8.19.jar:1.8.19]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_65]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_65]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_65]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65]
Caused by: java.lang.NullPointerException
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.convertToComment(JerseyJiraClient.java:300) ~[serenity-jira-plugin-1.8.0.jar:?]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.commentsIn(JerseyJiraClient.java:290) ~[serenity-jira-plugin-1.8.0.jar:?]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.convertToIssueSummary(JerseyJiraClient.java:279) ~[serenity-jira-plugin-1.8.0.jar:?]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.loadByJQLBatches(JerseyJiraClient.java:153) ~[serenity-jira-plugin-1.8.0.jar:?]
at net.serenitybdd.plugins.jira.client.FindByJQLLoaderUsingBatches.load(FindByJQLLoaderUsingBatches.java:17) ~[serenity-jira-plugin-1.8.0.jar:?]
at net.serenitybdd.plugins.jira.client.FindByJQLLoaderUsingBatches.load(FindByJQLLoaderUsingBatches.java:8) ~[serenity-jira-plugin-1.8.0.jar:?]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3628) ~[guava-20.0.jar:?]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2336) ~[guava-20.0.jar:?]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2295) ~[guava-20.0.jar:?]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2208) ~[guava-20.0.jar:?]
at com.google.common.cache.LocalCache.get(LocalCache.java:4053) ~[guava-20.0.jar:?]
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4057) ~[guava-20.0.jar:?]
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4986) ~[guava-20.0.jar:?]
at net.serenitybdd.plugins.jira.client.JerseyJiraClient.findByJQL(JerseyJiraClient.java:124) ~[serenity-jira-plugin-1.8.0.jar:?]


I am using the following version in my pom.xml file

<properties>
<serenity.version>1.8.19</serenity.version>
<serenity.cucumber.version>1.6.9</serenity.cucumber.version>
</properties>

<plugin>
<groupId>net.serenity-bdd.maven.plugins</groupId>
<artifactId>serenity-maven-plugin</artifactId>
<version>1.8.20</version>
<executions>
<execution>
<id>serenity-reports</id>
<phase>post-integration-test</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-jira-requirements-provider</artifactId>
<version>1.8.0</version>
</dependency>
</dependencies>
</plugin>

<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-core</artifactId>
<version>${serenity.version}</version>
</dependency>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-cucumber</artifactId>
<version>${serenity.cucumber.version}</version>
</dependency>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-jira-plugin</artifactId>
<version>1.8.0</version>
</dependency>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-jira-requirements-provider</artifactId>
<version>1.8.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>htmlunit-driver</artifactId>
<version>2.28.5</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>1.9.5</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>20.0</version>
</dependency>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-spring</artifactId>
<version>1.8.19</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-common</artifactId>
<version>2.25.1</version>
</dependency>
`

Kindly provide your thoughts on this issue

@SerTest3
Copy link
Author

SerTest3 commented Jul 3, 2018

Team,

Any solution for this issue ?

@wakaleo
Copy link
Member

wakaleo commented Jul 3, 2018

If there are no comments here, it’s that no one is picked the issue up yet. Open Source projects don’t have an SLA, and the best way to fix an issue is to drill into the code yourself. This is particularly true of integration with commercial third party tools like JIRA.

If you need this issue looked at quickly, have you considered the various support contracts? https://johnfergusonsmart.com/serenity-bdd-mentoring/

@majucamex2005
Copy link

John Ferguson your answer was an Epic!!!! lol

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

3 participants