microsoft / playwright-dotnet

.NET version of the Playwright testing and automation library.
https://playwright.dev/dotnet/
MIT License
2.47k stars 235 forks source link

[Feature] Add Retries #2316

Open mxschmitt opened 2 years ago

mxschmitt commented 2 years ago

Retries got reverted since there were bugs in it which would prevent users from using it efficiently.

Open items:

bheemreddy181 commented 2 years ago

Really looking forward into this - we are missing retries at this moment

bheemreddy181 commented 2 years ago

Can we also make retries differ based on the tag - like say if we have API tests then set retries to 0 and set retries to number n for web tests ?

mxschmitt commented 2 years ago

Retries would be for the whole project, so you can define <Retries>1</Retries> inside your runsettings file or when defining it via --settings to dotnet test. This is the same way how it's done for Node.js.

Just a question out of curiosity, are you using NUnit or MSTest?

bheemreddy181 commented 2 years ago

We are using Nunit - makes sense you can ignore the tag request. It’s better to have different run settings for different tag runs

nicolaiarocci commented 1 year ago

Looking forward to this one too.

masaplecas commented 1 year ago

Is there any ETA about this one?

DavinderZilo commented 1 year ago

Any update on this, it will really help where tests at times fail duty flakey backend

ArcadeMode commented 1 year ago

Is there any news on this? We're enjoying using playwright-dotnet a lot but retries would save us a lot of effort on manually re-running tests that fail due to random failures.

autom3tion commented 11 months ago

Really would appreciate if we'd get some info on this. I see PlaywrightSettingsProvider has Retries option, but it doesn't work.

TheJackGower commented 10 months ago

Is there an ETA yet? Would be a great feature to have.

gauravkhuraana commented 7 months ago

Dotnet is lagging compared to nodejs in many perspective. Can we please bring it to speed and bring on these features

ashleybissell commented 6 months ago

Do we have any timescales for when this might be looked at again? It appears to be a popular issue and would be a big help to a lot of users.

ertiusmeo commented 4 months ago

Is there any plan for this feature? It would be nice to have it.

mxschmitt commented 4 months ago

@ertiusmeo we are actively exploring options for NUnit and MSTest and collaborate with the MSTest maintainers. (no eta unfortunately)