agent-net-nunit icon indicating copy to clipboard operation
agent-net-nunit copied to clipboard

RP RC 4.0 Retry icon doesnt show for test based on nunit

Open KursLabIgor opened this issue 7 years ago • 15 comments

RP RC 4.0 Retry icon doesnt show for test based on nunit.

KursLabIgor avatar Jan 09 '18 14:01 KursLabIgor

@nvborisenko , is it possible to add a support of retry on nunit?

evjlobanova avatar Jan 09 '18 14:01 evjlobanova

https://github.com/nunit/docs/wiki/Retry-Attribute also we have custom retry on fails, so i think it wouldn't show retry in such case. here is how we implement custom retry. https://testingrepository.com/retry-failed-tests-in-nunit/

KursLabIgor avatar Jan 09 '18 15:01 KursLabIgor

Will take a look.

nvborisenko avatar Jan 10 '18 11:01 nvborisenko

It's possible. Will be implemented in next release of the agent. Current state is beta, architecture of reporting should be redesigned (reporting will live in separate process to avoid affecting tests thread/process/appdomain/whatever).

https://github.com/reportportal/commons-net/issues/5

nvborisenko avatar Jan 13 '18 21:01 nvborisenko

@nvborisenko thanks.

KursLabIgor avatar Jan 15 '18 07:01 KursLabIgor

@nvborisenko @KursLabIgor any updates on that?

DzmitryHumianiuk avatar Mar 14 '18 13:03 DzmitryHumianiuk

@DzmitryHumianiuk no updates from my side.

KursLabIgor avatar Mar 14 '18 13:03 KursLabIgor

@DzmitryHumianiuk It seems RP api should be extended. NUnit doesn't generate new test event when retrying it. So in terms of nunit we have one test item with repeated log messages there. So we can only provide the number of retries when finishing test item. And need one more issues to be resolved: https://github.com/nunit/nunit/issues/2916

nvborisenko avatar Jun 28 '18 12:06 nvborisenko

@nvborisenko can we make an agent call test case creation with retry flag on retry in nunit? The same does java based client.

Does any event available in nunit, which correspond to initiated re-try?

DzmitryHumianiuk avatar Jun 28 '18 19:06 DzmitryHumianiuk

Maximum what agent knows, this is how many times test was executed. In RP it is only 1 test item.

nvborisenko avatar Jun 29 '18 09:06 nvborisenko

sad :/

DzmitryHumianiuk avatar Jun 29 '18 17:06 DzmitryHumianiuk

Blocked by https://github.com/nunit/nunit/issues/1879

nvborisenko avatar Mar 18 '20 18:03 nvborisenko

I have a custom retry logic for my nunit tests. But RP shows the launch as "in progress" when the tests are done running. Are there any workarounds I could do?

quldude avatar Aug 16 '22 21:08 quldude

@quldude at least share details about your custom retry. Ideally, a simple test project to reproduce the issue.

nvborisenko avatar Aug 17 '22 10:08 nvborisenko

I was able to use reportclient to achieve my purpose. Thanks!

quldude avatar Aug 22 '22 12:08 quldude