testng-team / testng

TestNG testing framework
https://testng.org
Apache License 2.0
1.98k stars 1.02k forks source link

No listeners to run code before and after data provider #1539

Closed haithilak closed 7 years ago

haithilak commented 7 years ago

I am not sure if this is the right place to post this. I am not finding any listeners in testng to handle any logic before and after dataprovider is called. Please let me know if there is any alternate or hacks solution to achieve this

Actual behavior

Is the issue reproductible on runner?

Test case sample

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

krmahadevan commented 7 years ago

This should be available as part of TestNG 6.13. For more details see https://github.com/cbeust/testng/issues/1490

On Thu, Sep 14, 2017, 21:20 haithilak notifications@github.com wrote:

I am not sure if this is the right place to post this. I am not finding any listeners in testng to handle any logic before and after dataprovider is called. Please let me know if there is any alternate or hacks solution to achieve this Actual behavior Is the issue reproductible 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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cbeust/testng/issues/1539, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3hzWy2sOsi9-OeffhUUKhfOuJY8dGGks5siUtPgaJpZM4PXzMX .

--

Thanks & Regards Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!" My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

haithilak commented 7 years ago

Thanks a lot for the prompt response. Really Appreciate it @krmahadevan . Let me try this. Is there any known issue on using this feature? Or is that completely usable?

krmahadevan commented 7 years ago

For your use case this should suffice

On Thu, Sep 14, 2017, 22:30 haithilak notifications@github.com wrote:

Thanks a lot for the prompt response. Really Appreciate it @krmahadevan https://github.com/krmahadevan . Let me try this. Is there any known issue on using this feature? Or is that completely usable?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/cbeust/testng/issues/1539#issuecomment-329545386, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3hzQpqKu9Swkzt8WQkZFRkxUxGAU82ks5siVuWgaJpZM4PXzMX .

--

Thanks & Regards Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!" My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

juherr commented 7 years ago

I close the issue. Feel free to reopen if the current snapshot doesn't fix the issue.