You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A step in a scenario gets the records from database, passes the DB result as input to API and validates API response against expected output. As the number of DB results are around 5k, my plan is to use Streams. However,
the following code(using Streams) is executed only for the main thread but not for the Fork commonPools. Is there any way that this gets executed and reported in Serenity or should we develop a custom logic based on that?
kindly share your thoughts and opinions
On other note, I have seen that for Serenity with JUnit5, we have annotations @testdata, @SerenityParameterizedRunner available. Please share if you are aware of anything similar to Cucumber framework.
`17:25:52.038 [ForkJoinPool.commonPool-worker-4] INFO net.serenitybdd.rest.decorators.request.RequestSpecificationDecorated - No BaseStepListener, POST request4 not registered.
17:25:52.038 [ForkJoinPool.commonPool-worker-3] INFO net.serenitybdd.rest.decorators.request.RequestSpecificationDecorated - No BaseStepListener, POST request2 not registered.
17:25:52.038 [ForkJoinPool.commonPool-worker-2] INFO net.serenitybdd.rest.decorators.request.RequestSpecificationDecorated - No BaseStepListener, POST request3 not registered.`
Request1 gets executed in main thread and hence username and password are passed from step definition
Basically the request1, request2, request3 & request4 are same but with change in value that we get from Streams. Requests 2,3,4 which are executed using ForkJoinPool are thrown the not registered error. Username and password are not passed to these requests 2,3 &4.
also, The output is shown only for main thread execution but not for the ForkJoinPool.commonPool-worker-{1,2,3,4,5,6}
The text was updated successfully, but these errors were encountered:
My framework: Serenity with Cucumber
A step in a scenario gets the records from database, passes the DB result as input to API and validates API response against expected output. As the number of DB results are around 5k, my plan is to use Streams. However,
the following code(using Streams) is executed only for the main thread but not for the Fork commonPools. Is there any way that this gets executed and reported in Serenity or should we develop a custom logic based on that?
kindly share your thoughts and opinions
On other note, I have seen that for Serenity with JUnit5, we have annotations @testdata, @SerenityParameterizedRunner available. Please share if you are aware of anything similar to Cucumber framework.
Output:
Request1 gets executed in main thread and hence username and password are passed from step definition
Basically the request1, request2, request3 & request4 are same but with change in value that we get from Streams. Requests 2,3,4 which are executed using ForkJoinPool are thrown the not registered error. Username and password are not passed to these requests 2,3 &4.
also, The output is shown only for main thread execution but not for the ForkJoinPool.commonPool-worker-{1,2,3,4,5,6}
The text was updated successfully, but these errors were encountered: