Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Multiple screenshots in single entry when running in parallel #123

Open
Roni-GitHub opened this issue May 1, 2018 · 0 comments
Open

Multiple screenshots in single entry when running in parallel #123

Roni-GitHub opened this issue May 1, 2018 · 0 comments

Comments

@Roni-GitHub
Copy link

HI,

I'm running several tests in parallel and writing to the same report instance (singleton).
Each test gets new instance of ExtentTest.
I'm using the Flush command only once for each test end.

The problem is that the Flush command is writing to the report multiple same screenshot in single entry as the number of ExtentTests running and using MediaEntityBuilder.CreateScreenCaptureFromPath(fullPath).Build().

  • The problem is only with screenshots - not string entries.

I had the same problem when i ran my tests asynchronous but the following workaround fixed it: #58

Appriciate for help.

Thanks.

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

No branches or pull requests

1 participant