Code Monkey home page Code Monkey logo

Comments (5)

Invictum avatar Invictum commented on August 16, 2024 1

@nstbushneva
This one will be tricky. Actually for now parametrized tests with data provider are not supported at all. I am planning to add support, but not sure it will be quick.

from serenity-reportportal-integration.

Invictum avatar Invictum commented on August 16, 2024

@nstbushneva

Fix is available in 1.4.0-SNAPSHOT, work is still in progress, but I assume it will be connected to small refactor and documentation updates.

#61 is fixed as well in mentioned artifact.

Please, let me know if all works as expected.

from serenity-reportportal-integration.

nstbushneva avatar nstbushneva commented on August 16, 2024

Hi @Invictum, thank you for your fix.
It seems something goes wrong for scenarios execution itself (relevant for #61 as well):

<serenity.reportportal.version>1.4.0-SNAPSHOT</serenity.reportportal.version>

I am getting CHILD_START_TIME_EARLIER_THAN_PARENT error:

com.epam.reportportal.exception.ReportPortalException: Report Portal returned error
Status code: 406
Status message: Not Acceptable
Error Message: Start time of child ['Mon Mar 25 08:03:03 UTC 2019'] item should be same or later than start time ['Mon Mar 25 08:03:04 UTC 2019'] of the parent item/launch '5c988b39af66c600012a0f39'
Error Type: CHILD_START_TIME_EARLIER_THAN_PARENT

        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)
com.epam.reportportal.exception.ReportPortalException: Report Portal returned error
Status code: 406
Status message: Not Acceptable
Error Message: Start time of child ['Mon Mar 25 08:03:03 UTC 2019'] item should be same or later than start time ['Mon Mar 25 08:03:04 UTC 2019'] of the parent item/launch '5c988b39af66c600012a0f39'
Error Type: CHILD_START_TIME_EARLIER_THAN_PARENT

        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)

Failed scenarios:
src/test/resources/scenario_outline_test.feature:11 # Dummy scenario

In order to reproduce the issue, please reuse the same serenity-with-cucumber-scenario-outlines.zip

with updated pom.xml:

<serenity.reportportal.version>1.4.0-SNAPSHOT</serenity.reportportal.version>

<repositories>
    <repository>
      <id>snapshots-repo</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
      <releases><enabled>true</enabled></releases>
      <snapshots><enabled>true</enabled></snapshots>
    </repository>
  </repositories>

from serenity-reportportal-integration.

Invictum avatar Invictum commented on August 16, 2024

@nstbushneva nice catch!
Fix is uploaded to the same artifact name.

from serenity-reportportal-integration.

Invictum avatar Invictum commented on August 16, 2024

Fixed. Will be available in version 1.4.0+

Parametrized tests may have equal names in RP, but always have a different set of parameters.

Names

Screenshot 2019-04-03 10 03 13

Parameters

Screenshot 2019-04-03 10 04 33

from serenity-reportportal-integration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.