Comments (9)
java.lang.NoSuchMethodError: net.thucydides.core.model.TestOutcome.getTestSource()Ljava/lang/String;
at com.github.invictum.reportportal.recorder.TestRecorder.forTest(TestRecorder.java:22)
11623 [pool-1-thread-1] ERROR net.serenitybdd.core.Serenity - TEST FAILED AT STEP Given a scenario with ?DifferentMonth?
at com.github.invictum.reportportal.ReportPortalListener.testFinished(ReportPortalListener.java:50)
at net.thucydides.core.steps.StepEventBus.testFinished(StepEventBus.java:227)
11623 [pool-1-thread-1] ERROR net.serenitybdd.core.Serenity -
at net.serenitybdd.jbehave.SerenityReporter.afterScenario(SerenityReporter.java:544)
at org.jbehave.core.reporters.DelegatingStoryReporter.afterScenario(DelegatingStoryReporter.java:43)
at org.jbehave.core.reporters.ConcurrentStoryReporter.afterScenario(ConcurrentStoryReporter.java:175)
at org.jbehave.core.embedder.StoryRunner.runCancellable(StoryRunner.java:347)
at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:239)
at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:182)
at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:266)
at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:233)
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)
from serenity-reportportal-integration.
Looks like you are trying to use integration with incompatible version of Serenity (possible outdated). Can you specify Serenity version in your project?
from serenity-reportportal-integration.
from serenity-reportportal-integration.
more log details.
I have a story to verify all fruits .
Here is the example.
verify fruits given.story
Scenario:verify fruits given [story inside other storys]
GivenStories:
apple.story,
oranges.story,
banana.story
Then all fruits verified
And End the scenario
java.lang.NullPointerException
at com.github.invictum.reportportal.SuiteStorage.lambda$finalizeActive$2(SuiteStorage.java:52)
at java.util.concurrent.ConcurrentHashMap$ForEachKeyTask.compute(ConcurrentHashMap.java:4923)
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.concurrent.ConcurrentHashMap.forEachKey(ConcurrentHashMap.java:3824)
at com.github.invictum.reportportal.SuiteStorage.finalizeActive(SuiteStorage.java:50)
at com.github.invictum.reportportal.ReportPortalListener.testSuiteFinished(ReportPortalListener.java:38)
at net.thucydides.core.steps.StepEventBus.testSuiteFinished(StepEventBus.java:592)
at com.swacorp.qmo.SerenityCustomReportingRunner.shutdownTestSuite(SerenityCustomReportingRunner.java:249)
at com.swacorp.qmo.SerenityCustomReportingRunner.run(SerenityCustomReportingRunner.java:230)
at org.junit.runners.Suite.runChild(Suite.java:127)
at org.junit.runners.Suite.runChild(Suite.java:26)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
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)
Exception in thread "Thread-1" com.epam.reportportal.exception.ReportPortalException: Report Portal returned error
Status code: 406
Status message: Not Acceptable
Error Message: Finish launch is not allowed. Launch '5dc96f6869515b0001be3a84' has items '[5dc96f8e69515b0001be3ac1]' with 'IN_PROGRESS' status
Error Type: FINISH_LAUNCH_NOT_ALLOWED
at com.epam.reportportal.service.ReportPortalErrorHandler.handleError(ReportPortalErrorHandler.java:83)
at com.epam.reportportal.service.ReportPortalErrorHandler.handle(ReportPortalErrorHandler.java:59)
at com.epam.reportportal.restendpoint.http.HttpClientRestEndpoint$1.subscribe(HttpClientRestEndpoint.java:517)
at io.reactivex.internal.operators.maybe.MaybeCreate.subscribeActual(MaybeCreate.java:45)
at io.reactivex.Maybe.subscribe(Maybe.java:4096)
at io.reactivex.internal.operators.maybe.MaybeCache.subscribeActual(MaybeCache.java:77)
at io.reactivex.Maybe.subscribe(Maybe.java:4096)
at io.reactivex.internal.operators.maybe.MaybeSubscribeOn$SubscribeTask.run(MaybeSubscribeOn.java:54)
at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)
at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)
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)
from serenity-reportportal-integration.
@prasad150
Thanks for clarification. I will look into this issue and let you know if I need somethings additional.
from serenity-reportportal-integration.
@prasad150
Sorry for late response. Issue occurs because of GivenStories
tag that isn't supported for now. I will schedule implementation, but not sure is will be ready in nearest future.
from serenity-reportportal-integration.
from serenity-reportportal-integration.
Hi,
I have integrated report portal with Serenity project(cucumber, Maven) project. I have configured reportportal.properties and
repositories mentioned in POM.xml. Serenity report portal integration-1.5.0.jar added as external jar as it is not available in our company. After running the test either it is not throwing any error or it is not connecting to reportportal. Need I to mentioned anything in goal while running the tests?? Could you please help on this ?
Pom Profile :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>enforce</id>
<configuration>
<rules>
<requireUpperBoundDeps />
<requireJavaVersion>
<version>1.8</version>
</requireJavaVersion>
</rules>
</configuration>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<includes>
<include>**/*.java</include>
</includes>
<parallel>classes</parallel>
<threadCount>5</threadCount>
<forkCount>5</forkCount>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>net.serenity-bdd.maven.plugins</groupId>
<artifactId>serenity-maven-plugin</artifactId>
<version>${serenity.maven.version}</version>
<dependencies>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-core</artifactId>
<version>${serenity.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>serenity-reports</id>
<phase>post-integration-test</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
from serenity-reportportal-integration.
@Invictum unfortunately, I am also getting the same error. When the tests pass, there is no issue. But when one of the example test fails, the entire execution is stopped and the below error is thrown. Also, there is no GivenStories tag being used. Any help would be greatly appreciated.
Below are the versions and report portal dependency
<serenity.version>2.3.11</serenity.version>
<serenity.rest.version>2.3.11</serenity.rest.version>
<serenity.maven.version>2.4.1</serenity.maven.version>
<serenity.cucumber.version>2.3.2</serenity.cucumber.version>
<artifactId>serenity-reportportal-integration</artifactId>
<version>1.5.8</version>
11:54:29.827 [pool-2-thread-1] DEBUG n.s.core.photography.Darkroom - Closing darkroom
null
java.lang.NullPointerException
at com.github.invictum.reportportal.SuiteStorage.lambda$finalizeActive$2(SuiteStorage.java:57)
at
java.base/java.util.concurrent.ConcurrentHashMap$ForEachKeyTask.compute(ConcurrentHashMap.java:4992)
at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
from serenity-reportportal-integration.
Related Issues (20)
- Auto generate skip testcase HOT 3
- How to convert error test case in serenity to failure test case in rp? HOT 2
- Tag visualisation for Scenario Outline examples in Report Portal Tool HOT 1
- Add options to compare any two builds HOT 1
- Failed serenity test isn't reported as 'FAILED' in ReportPortal HOT 5
- Implementing support for parallel execution HOT 1
- Issue with Serenity 3.6.0 executing tests with Junit-platform-suite throws exception HOT 1
- Update integration versioning
- Travis CI leftovers cleanup
- Add codeowners configuration to the project
- Configure GPG for artifacts signing
- Add Maven wrapper
- Add Serenity 4 Support HOT 1
- Migrate tests from Junit 4 to Junit5
- Update Readme to make it grammatically correct
- Use github actions to deploy artifact snapshots
- Random error with async reporting HOT 2
- Test Metrics Count Incorrect in ReportPortal HOT 21
- Providing properties through Java class rather than .properties file HOT 1
- Record data with Serenity.recordReportData().withTitle().andContents(); HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serenity-reportportal-integration.