TestNg-Rerunning Skipped Test cases (On Configuration Failures)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

TestNg-Rerunning Skipped Test cases (On Configuration Failures)

santhosh soma
Hello All,

We have implemented Recovery/Retry Mechanism for the Failure test cases. We are successful so far for the re running failure test cases from the end to end.

At the same time,  TestNG is marking the test cases as Skipped if any before configuration method fails. Due to this, Retry Listener is not picking up the skipped tests.

Is there any possible way to handle this? 

Thanks
Santhosh.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: TestNg-Rerunning Skipped Test cases (On Configuration Failures)

⇜Krishnan Mahadevan⇝

Are you looking for a retry mechanism for a configuration method?

 

Retrying is applicable only for failed tests and not for skipped tests.

 

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/

 

From: <[hidden email]> on behalf of santhosh soma <[hidden email]>
Reply-To: <[hidden email]>
Date: Monday, October 16, 2017 at 5:14 PM
To: "[hidden email]" <[hidden email]>
Subject: [testng-users] TestNg-Rerunning Skipped Test cases (On Configuration Failures)

 

Hello All,

We have implemented Recovery/Retry Mechanism for the Failure test cases. We are successful so far for the re running failure test cases from the end to end.

At the same time,  TestNG is marking the test cases as Skipped if any before configuration method fails. Due to this, Retry Listener is not picking up the skipped tests.

Is there any possible way to handle this? 

Thanks

Santhosh.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Fwd: [testng-users] TestNg-Rerunning Skipped Test cases (On Configuration Failures)

santhosh soma
Hi Krishnan,

Thanks for the quick response. Yes I am looking for the retry mechanism for a configuration method failure.

Yes I am aware of Retrying is applicable only for failed test and not for skipped tests.

Thanks
Santhosh.

On Monday, 16 October 2017 19:05:50 UTC+5:30, Krishnan Mahadevan wrote:

Are you looking for a retry mechanism for a configuration method?

 

Retrying is applicable only for failed tests and not for skipped tests.

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

 

From: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_Mm3Co7wAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@...> on behalf of santhosh soma <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_Mm3Co7wAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">santhos...@...>
Reply-To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_Mm3Co7wAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@...>
Date: Monday, October 16, 2017 at 5:14 PM
To: "<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_Mm3Co7wAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@..." <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_Mm3Co7wAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@...>
Subject: [testng-users] TestNg-Rerunning Skipped Test cases (On Configuration Failures)

 

Hello All,

We have implemented Recovery/Retry Mechanism for the Failure test cases. We are successful so far for the re running failure test cases from the end to end.

At the same time,  TestNG is marking the test cases as Skipped if any before configuration method fails. Due to this, Retry Listener is not picking up the skipped tests.

Is there any possible way to handle this? 

Thanks

Santhosh.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="_Mm3Co7wAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng-users...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="_Mm3Co7wAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@....
Visit this group at <a href="https://groups.google.com/group/testng-users" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: TestNg-Rerunning Skipped Test cases (On Configuration Failures)

⇜Krishnan Mahadevan⇝
I don't think there is any such mechanism out there. So you can perhaps build it on your own, by having a loop based retry mechanism (which tries "n" times before giving up), within your configuration methods, which retries until either the config passes or n attempts have been made.

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/

On Tue, Oct 24, 2017 at 10:07 AM, santhosh soma <[hidden email]> wrote:
Hi Krishnan,

Thanks for the quick response. Yes I am looking for the retry mechanism for a configuration method failure.

Yes I am aware of Retrying is applicable only for failed test and not for skipped tests.

Thanks
Santhosh.

On Monday, 16 October 2017 19:05:50 UTC+5:30, Krishnan Mahadevan wrote:

Are you looking for a retry mechanism for a configuration method?

 

Retrying is applicable only for failed tests and not for skipped tests.

 

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/

 

From: <[hidden email]> on behalf of santhosh soma <[hidden email]>
Reply-To: <[hidden email]>
Date: Monday, October 16, 2017 at 5:14 PM
To: "[hidden email]" <[hidden email]>
Subject: [testng-users] TestNg-Rerunning Skipped Test cases (On Configuration Failures)

 

Hello All,

We have implemented Recovery/Retry Mechanism for the Failure test cases. We are successful so far for the re running failure test cases from the end to end.

At the same time,  TestNG is marking the test cases as Skipped if any before configuration method fails. Due to this, Retry Listener is not picking up the skipped tests.

Is there any possible way to handle this? 

Thanks

Santhosh.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: TestNg-Rerunning Skipped Test cases (On Configuration Failures)

Santosh Bhinge
In reply to this post by santhosh soma
Hi Santhosh,

Looking for the solutions of retrying skipped tests along with failed, as you put the query for. Any better luck? if yes please do share. Thanks.

On Tuesday, October 24, 2017 at 10:07:51 AM UTC+5:30, santhosh soma wrote:
Hi Krishnan,

Thanks for the quick response. Yes I am looking for the retry mechanism for a configuration method failure.

Yes I am aware of Retrying is applicable only for failed test and not for skipped tests.

Thanks
Santhosh.

On Monday, 16 October 2017 19:05:50 UTC+5:30, Krishnan Mahadevan wrote:

Are you looking for a retry mechanism for a configuration method?

 

Retrying is applicable only for failed tests and not for skipped tests.

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

 

From: <[hidden email]> on behalf of santhosh soma <[hidden email]>
Reply-To: <[hidden email]>
Date: Monday, October 16, 2017 at 5:14 PM
To: "[hidden email]" <[hidden email]>
Subject: [testng-users] TestNg-Rerunning Skipped Test cases (On Configuration Failures)

 

Hello All,

We have implemented Recovery/Retry Mechanism for the Failure test cases. We are successful so far for the re running failure test cases from the end to end.

At the same time,  TestNG is marking the test cases as Skipped if any before configuration method fails. Due to this, Retry Listener is not picking up the skipped tests.

Is there any possible way to handle this? 

Thanks

Santhosh.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to [hidden email].
Visit this group at <a href="https://groups.google.com/group/testng-users" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.