Make reporting more verbose

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

Make reporting more verbose

garvitagirotraev
Hi,

My test suite is integrated to CI, when CI run is complete- allure report is generated in the end. Is there any way to make reporting more verbose- that can explain in layman language what is happening. Please see attached snapshot for example.

A test is sequence of steps- as i have designed , i know what is happening when i see log on console. But is there a way to add more description to console for each step that can help others to understand what is happening in test.

Thanks !!

--
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.

log.PNG (67K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Make reporting more verbose

⇜Krishnan Mahadevan⇝
What do you mean when you say add more description ?

You seem to be running Cucumber Tests. Here TestNG can only act as a TestRunner [ a mechanism to basically blend your feature file and your glues together and run the scenarios iteratively ]. TestNG doesnt have any role beyond that to play.

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 Mon, Dec 4, 2017 at 10:59 AM, <[hidden email]> wrote:
Hi,

My test suite is integrated to CI, when CI run is complete- allure report is generated in the end. Is there any way to make reporting more verbose- that can explain in layman language what is happening. Please see attached snapshot for example.

A test is sequence of steps- as i have designed , i know what is happening when i see log on console. But is there a way to add more description to console for each step that can help others to understand what is happening in test.

Thanks !!

--
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: Make reporting more verbose

garvitagirotraev
By adding more description means- like in snapshot there are comments in green that are describing kind of user story. The snapshot attached is just a sample that came as requirement if we can also incorporate something like this with selenium. 

When my test suite is run- console displays text that i have mentioned using Reporter.log(). For simple test, its fine. For test containing many functions, is there a way that console displays comments regarding to that.

Example :
@Test
makePiechart()
{
 // select pie chart from dropdown
// select parameter 1 = company
// create chart
// assert chart labels
// assert chart title
// get tooltips
}

All this is happening in one test. How can i add these comments to console ?

Thanks !!

On Monday, December 4, 2017 at 11:02:30 AM UTC+5:30, Krishnan Mahadevan wrote:
What do you mean when you say add more description ?

You seem to be running Cucumber Tests. Here TestNG can only act as a TestRunner [ a mechanism to basically blend your feature file and your glues together and run the scenarios iteratively ]. TestNG doesnt have any role beyond that to play.

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/

On Mon, Dec 4, 2017 at 10:59 AM, <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xWPKOr1IBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">garvitag...@...> wrote:
Hi,

My test suite is integrated to CI, when CI run is complete- allure report is generated in the end. Is there any way to make reporting more verbose- that can explain in layman language what is happening. Please see attached snapshot for example.

A test is sequence of steps- as i have designed , i know what is happening when i see log on console. But is there a way to add more description to console for each step that can help others to understand what is happening in test.

Thanks !!

--
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="xWPKOr1IBQAJ" 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="xWPKOr1IBQAJ" 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: Make reporting more verbose

⇜Krishnan Mahadevan⇝
I believe you would need to look at a gherkin.formatter.Formatter or a gherkin.formatter.Reporter from Cucumber (I forget which exactly), implement it and then wire it in via @CucumberOptions annotation.

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 Mon, Dec 4, 2017 at 11:41 AM, <[hidden email]> wrote:
By adding more description means- like in snapshot there are comments in green that are describing kind of user story. The snapshot attached is just a sample that came as requirement if we can also incorporate something like this with selenium. 

When my test suite is run- console displays text that i have mentioned using Reporter.log(). For simple test, its fine. For test containing many functions, is there a way that console displays comments regarding to that.

Example :
@Test
makePiechart()
{
 // select pie chart from dropdown
// select parameter 1 = company
// create chart
// assert chart labels
// assert chart title
// get tooltips
}

All this is happening in one test. How can i add these comments to console ?

Thanks !!

On Monday, December 4, 2017 at 11:02:30 AM UTC+5:30, Krishnan Mahadevan wrote:
What do you mean when you say add more description ?

You seem to be running Cucumber Tests. Here TestNG can only act as a TestRunner [ a mechanism to basically blend your feature file and your glues together and run the scenarios iteratively ]. TestNG doesnt have any role beyond that to play.

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 Mon, Dec 4, 2017 at 10:59 AM, <[hidden email]> wrote:
Hi,

My test suite is integrated to CI, when CI run is complete- allure report is generated in the end. Is there any way to make reporting more verbose- that can explain in layman language what is happening. Please see attached snapshot for example.

A test is sequence of steps- as i have designed , i know what is happening when i see log on console. But is there a way to add more description to console for each step that can help others to understand what is happening in test.

Thanks !!

--
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: Make reporting more verbose

garvitagirotraev
Thanks a lot !!

On Monday, December 4, 2017 at 11:55:14 AM UTC+5:30, Krishnan Mahadevan wrote:
I believe you would need to look at a gherkin.formatter.Formatter or a gherkin.formatter.Reporter from Cucumber (I forget which exactly), implement it and then wire it in via @CucumberOptions annotation.

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/

On Mon, Dec 4, 2017 at 11:41 AM, <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="1veZBZ5LBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">garvitag...@...> wrote:
By adding more description means- like in snapshot there are comments in green that are describing kind of user story. The snapshot attached is just a sample that came as requirement if we can also incorporate something like this with selenium. 

When my test suite is run- console displays text that i have mentioned using Reporter.log(). For simple test, its fine. For test containing many functions, is there a way that console displays comments regarding to that.

Example :
@Test
makePiechart()
{
 // select pie chart from dropdown
// select parameter 1 = company
// create chart
// assert chart labels
// assert chart title
// get tooltips
}

All this is happening in one test. How can i add these comments to console ?

Thanks !!

On Monday, December 4, 2017 at 11:02:30 AM UTC+5:30, Krishnan Mahadevan wrote:
What do you mean when you say add more description ?

You seem to be running Cucumber Tests. Here TestNG can only act as a TestRunner [ a mechanism to basically blend your feature file and your glues together and run the scenarios iteratively ]. TestNG doesnt have any role beyond that to play.

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/

On Mon, Dec 4, 2017 at 10:59 AM, <[hidden email]> wrote:
Hi,

My test suite is integrated to CI, when CI run is complete- allure report is generated in the end. Is there any way to make reporting more verbose- that can explain in layman language what is happening. Please see attached snapshot for example.

A test is sequence of steps- as i have designed , i know what is happening when i see log on console. But is there a way to add more description to console for each step that can help others to understand what is happening in test.

Thanks !!

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="1veZBZ5LBQAJ" 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="1veZBZ5LBQAJ" 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: Make reporting more verbose

⇜Krishnan Mahadevan⇝

No problem!


On Mon, Dec 4, 2017, 11:58 <[hidden email]> wrote:
Thanks a lot !!


On Monday, December 4, 2017 at 11:55:14 AM UTC+5:30, Krishnan Mahadevan wrote:
I believe you would need to look at a gherkin.formatter.Formatter or a gherkin.formatter.Reporter from Cucumber (I forget which exactly), implement it and then wire it in via @CucumberOptions annotation.

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 Mon, Dec 4, 2017 at 11:41 AM, <[hidden email]> wrote:
By adding more description means- like in snapshot there are comments in green that are describing kind of user story. The snapshot attached is just a sample that came as requirement if we can also incorporate something like this with selenium. 

When my test suite is run- console displays text that i have mentioned using Reporter.log(). For simple test, its fine. For test containing many functions, is there a way that console displays comments regarding to that.

Example :
@Test
makePiechart()
{
 // select pie chart from dropdown
// select parameter 1 = company
// create chart
// assert chart labels
// assert chart title
// get tooltips
}

All this is happening in one test. How can i add these comments to console ?

Thanks !!

On Monday, December 4, 2017 at 11:02:30 AM UTC+5:30, Krishnan Mahadevan wrote:
What do you mean when you say add more description ?

You seem to be running Cucumber Tests. Here TestNG can only act as a TestRunner [ a mechanism to basically blend your feature file and your glues together and run the scenarios iteratively ]. TestNG doesnt have any role beyond that to play.

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 Mon, Dec 4, 2017 at 10:59 AM, <[hidden email]> wrote:
Hi,

My test suite is integrated to CI, when CI run is complete- allure report is generated in the end. Is there any way to make reporting more verbose- that can explain in layman language what is happening. Please see attached snapshot for example.

A test is sequence of steps- as i have designed , i know what is happening when i see log on console. But is there a way to add more description to console for each step that can help others to understand what is happening in test.

Thanks !!

--
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.

--
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.
--

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/

--
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.