Skipping TestNG tests that have an existing bug on Jira

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

Skipping TestNG tests that have an existing bug on Jira

Or Shachar
Hi guys, 

When running automation suits via TestNG, I've got to face a very common issue: What do to with known bugs
that either have a low priority, or are waiting to get fixed for the next version?

We can, of course, just disable the tests - but then you have to remember to re-enable them after it is fixed, 
and this may be after a long time, and plus - it is not "real" -  in the sense that the bug still exists. 

So I've written a small extension that enables a new annotation which you can use - which 
uses the Jira API's to monitor the issue status, and changes the test result accordingly. 
if the bug is resolved - it will re-test, and if the bug is open - it will skip it. 

Feel free to use it however you'd like: 

--
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: Skipping TestNG tests that have an existing bug on Jira

Cédric Beust ♔-2
This is a very cool idea, thanks for sharing!

-- 
Cédric



On Sun, Dec 23, 2018 at 2:49 AM Or Shachar <[hidden email]> wrote:
Hi guys, 

When running automation suits via TestNG, I've got to face a very common issue: What do to with known bugs
that either have a low priority, or are waiting to get fixed for the next version?

We can, of course, just disable the tests - but then you have to remember to re-enable them after it is fixed, 
and this may be after a long time, and plus - it is not "real" -  in the sense that the bug still exists. 

So I've written a small extension that enables a new annotation which you can use - which 
uses the Jira API's to monitor the issue status, and changes the test result accordingly. 
if the bug is resolved - it will re-test, and if the bug is open - it will skip it. 

Feel free to use it however you'd like: 

--
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: Skipping TestNG tests that have an existing bug on Jira

Or Shachar
Thanks Cédric!

On Monday, December 24, 2018 at 11:53:44 PM UTC+2, Cédric Beust ♔ wrote:
This is a very cool idea, thanks for sharing!

-- 
Cédric



On Sun, Dec 23, 2018 at 2:49 AM Or Shachar <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="zqWqbfA7CwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">orsha...@...> wrote:
Hi guys, 

When running automation suits via TestNG, I've got to face a very common issue: What do to with known bugs
that either have a low priority, or are waiting to get fixed for the next version?

We can, of course, just disable the tests - but then you have to remember to re-enable them after it is fixed, 
and this may be after a long time, and plus - it is not "real" -  in the sense that the bug still exists. 

So I've written a small extension that enables a new annotation which you can use - which 
uses the Jira API's to monitor the issue status, and changes the test result accordingly. 
if the bug is resolved - it will re-test, and if the bug is open - it will skip it. 

Feel free to use it however you'd like: 

<a href="https://github.com/orshachar/known-issue" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Forshachar%2Fknown-issue\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG9L2StNyLtCPVAPm6w3mQMC8JDbg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Forshachar%2Fknown-issue\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG9L2StNyLtCPVAPm6w3mQMC8JDbg&#39;;return true;">https://github.com/orshachar/known-issue

--
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="zqWqbfA7CwAJ" 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="zqWqbfA7CwAJ" 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.