Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to retry a data provider in case of failures #2819

Closed
7 tasks done
krmahadevan opened this issue Nov 3, 2022 · 3 comments · Fixed by #2820 or #2822
Closed
7 tasks done

Ability to retry a data provider in case of failures #2819

krmahadevan opened this issue Nov 3, 2022 · 3 comments · Fixed by #2820 or #2822

Comments

@krmahadevan
Copy link
Member

TestNG Version

Note: only the latest version is supported

7.6.1

Expected behavior

The data provider is retried automatically

Actual behavior

No generic mechanism to retry a data provider without doing it at a per data provider level.

Is the issue reproducible on runner?

  • Shell
  • Maven
  • Gradle
  • Ant
  • Eclipse
  • IntelliJ
  • NetBeans

Test case sample

Please, share the test case (as small as possible) which shows the issue

No testcase, since this is a new requirement. For more details please take a look at this user post https://groups.google.com/g/testng-users/c/7Q40qIPcOLc/m/W7ibgBW2AQAJ

Contribution guidelines

Incase you plan to raise a pull request to fix this issue, please make sure you refer our Contributing section for detailed set of steps.

@krmahadevan krmahadevan added this to the 7.6.2 milestone Nov 3, 2022
@krmahadevan krmahadevan changed the title Ability to retry retry a data provider in case of failures Ability to retry a data provider in case of failures Nov 3, 2022
@baflQA
Copy link
Contributor

baflQA commented Nov 3, 2022

@krmahadevan thanks for bringing it into GitHub.
Do You have any implementation ideas on how to approach this task?

@krmahadevan
Copy link
Member Author

@krmahadevan thanks for bringing it into GitHub.

Do You have any implementation ideas on how to approach this task?

@baflQA
An working on the PR for this. Should be done in a few hours.

The implementation would be similar to how we use retry analyser for test methods so that one can have different retry implementations for different data providers.

@baflQA
Copy link
Contributor

baflQA commented Nov 3, 2022

You are amazing @krmahadevan ! Can't wait for the next release.
Thank You for all Your work.

@krmahadevan krmahadevan modified the milestones: 7.6.2, 7.7.0 Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants