Reporter.log newline

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

Reporter.log newline

JROCK2004
Ok I am trying to make the appearance of how the emailable report from
the reporter.log method look a little fancier. I want to do something
like this:

User ID:
[hidden email]

So this is how I am coding it

Reporter.log("User ID: \n" + userID);

Is this not correct? Is their a way I can better style the emailable-
report.html? Thanks

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

Reply | Threaded
Open this post in threaded view
|

Re: Reporter.log newline

Cédric Beust ♔-2
It's HTML, try with a <br> or <p>.

-- 
Cédric


On Mon, Dec 6, 2010 at 1:57 PM, jrock2004 <[hidden email]> wrote:
Ok I am trying to make the appearance of how the emailable report from
the reporter.log method look a little fancier. I want to do something
like this:

User ID:
[hidden email]

So this is how I am coding it

Reporter.log("User ID: \n" + userID);

Is this not correct? Is their a way I can better style the emailable-
report.html? Thanks

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.




--
Cédric


--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: Reporter.log newline

JROCK2004
That did it. Cool that I did not know so that opens up a lot for me,
thank you.

On Dec 6, 5:03 pm, Cédric Beust ♔ <[hidden email]> wrote:

> It's HTML, try with a <br> or <p>.
>
> --
> Cédric
>
>
>
>
>
> On Mon, Dec 6, 2010 at 1:57 PM, jrock2004 <[hidden email]> wrote:
> > Ok I am trying to make the appearance of how the emailable report from
> > the reporter.log method look a little fancier. I want to do something
> > like this:
>
> > User ID:
> > [hidden email]
>
> > So this is how I am coding it
>
> > Reporter.log("User ID: \n" + userID);
>
> > Is this not correct? Is their a way I can better style the emailable-
> > report.html? Thanks
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "testng-users" group.
> > To post to this group, send email to [hidden email].
> > To unsubscribe from this group, send email to
> > [hidden email]<testng-users%2Bunsubscribe@google groups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/testng-users?hl=en.
>
> --
> Cédric

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

Reply | Threaded
Open this post in threaded view
|

Re: Reporter.log newline

JROCK2004
Now the top section and the title of each tests, are these
configurable? Thanks


On Dec 6, 5:10 pm, jrock2004 <[hidden email]> wrote:

> That did it. Cool that I did not know so that opens up a lot for me,
> thank you.
>
> On Dec 6, 5:03 pm, Cédric Beust ♔ <[hidden email]> wrote:
>
>
>
> > It's HTML, try with a <br> or <p>.
>
> > --
> > Cédric
>
> > On Mon, Dec 6, 2010 at 1:57 PM, jrock2004 <[hidden email]> wrote:
> > > Ok I am trying to make the appearance of how the emailable report from
> > > the reporter.log method look a little fancier. I want to do something
> > > like this:
>
> > > User ID:
> > > [hidden email]
>
> > > So this is how I am coding it
>
> > > Reporter.log("User ID: \n" + userID);
>
> > > Is this not correct? Is their a way I can better style the emailable-
> > > report.html? Thanks
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "testng-users" group.
> > > To post to this group, send email to [hidden email].
> > > To unsubscribe from this group, send email to
> > > [hidden email]<testng-users%2Bunsubscribe@google groups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/testng-users?hl=en.
>
> > --
> > Cédric

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

Reply | Threaded
Open this post in threaded view
|

Re: Reporter.log newline

Rafael Carvalho
How insert html within of the report.log() ?

I try with Reporter.setEscapeHtml(true); but doesn't work!

Em sexta-feira, 10 de dezembro de 2010 11h43min42s UTC-2, jrock2004 escreveu:
Now the top section and the title of each tests, are these
configurable? Thanks


On Dec 6, 5:10 pm, jrock2004 <[hidden email]> wrote:

> That did it. Cool that I did not know so that opens up a lot for me,
> thank you.
>
> On Dec 6, 5:03 pm, Cédric Beust ♔ <[hidden email]> wrote:
>
>
>
> > It's HTML, try with a <br> or <p>.
>
> > --
> > Cédric
>
> > On Mon, Dec 6, 2010 at 1:57 PM, jrock2004 <[hidden email]> wrote:
> > > Ok I am trying to make the appearance of how the emailable report from
> > > the reporter.log method look a little fancier. I want to do something
> > > like this:
>
> > > User ID:
> > > [hidden email]
>
> > > So this is how I am coding it
>
> > > Reporter.log("User ID: \n" + userID);
>
> > > Is this not correct? Is their a way I can better style the emailable-
> > > report.html? Thanks
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "testng-users" group.
> > > To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="nD3Go_NDXmgJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">testng...@....
> > > To unsubscribe from this group, send email to
> > > <a href="javascript:" target="_blank" gdf-obfuscated-mailto="nD3Go_NDXmgJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">testng-users...@googlegroups.com<testng-users%2Bunsubscribe@google <a href="http://groups.com" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgroups.com\46sa\75D\46sntz\0751\46usg\75AFQjCNEW6YbLM8_fDrEdUtYVuEzF9AaTCg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgroups.com\46sa\75D\46sntz\0751\46usg\75AFQjCNEW6YbLM8_fDrEdUtYVuEzF9AaTCg';return true;">groups.com>
> > > .
> > > For more options, visit this group at
> > ><a href="http://groups.google.com/group/testng-users?hl=en" target="_blank" onmousedown="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;" onclick="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;">http://groups.google.com/group/testng-users?hl=en.
>
> > --
> > Cédric

--
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 http://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: Reporter.log newline

CreeTar
luckily it doesn't, you might wanna try false instead of true and check what escaping actually means ;)

Am Dienstag, 1. Juli 2014 16:45:07 UTC+2 schrieb Rafael Carvalho:
How insert html within of the report.log() ?

I try with Reporter.setEscapeHtml(true); but doesn't work!

Em sexta-feira, 10 de dezembro de 2010 11h43min42s UTC-2, jrock2004 escreveu:
Now the top section and the title of each tests, are these
configurable? Thanks


On Dec 6, 5:10 pm, jrock2004 <[hidden email]> wrote:

> That did it. Cool that I did not know so that opens up a lot for me,
> thank you.
>
> On Dec 6, 5:03 pm, Cédric Beust ♔ <[hidden email]> wrote:
>
>
>
> > It's HTML, try with a <br> or <p>.
>
> > --
> > Cédric
>
> > On Mon, Dec 6, 2010 at 1:57 PM, jrock2004 <[hidden email]> wrote:
> > > Ok I am trying to make the appearance of how the emailable report from
> > > the reporter.log method look a little fancier. I want to do something
> > > like this:
>
> > > User ID:
> > > [hidden email]
>
> > > So this is how I am coding it
>
> > > Reporter.log("User ID: \n" + userID);
>
> > > Is this not correct? Is their a way I can better style the emailable-
> > > report.html? Thanks
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "testng-users" group.
> > > To post to this group, send email to [hidden email].
> > > To unsubscribe from this group, send email to
> > > testng-users...@googlegroups.com<testng-users%2Bunsubscribe@google <a href="http://groups.com" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgroups.com\46sa\75D\46sntz\0751\46usg\75AFQjCNEW6YbLM8_fDrEdUtYVuEzF9AaTCg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgroups.com\46sa\75D\46sntz\0751\46usg\75AFQjCNEW6YbLM8_fDrEdUtYVuEzF9AaTCg';return true;">groups.com>
> > > .
> > > For more options, visit this group at
> > ><a href="http://groups.google.com/group/testng-users?hl=en" target="_blank" onmousedown="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;" onclick="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;">http://groups.google.com/group/testng-users?hl=en.
>
> > --
> > Cédric

--
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 http://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: Reporter.log newline

SUBRAMANYESWARA RAO BHAVIRISETTY
Exactly, And if you are using reportng, set the following system property variable.

                        <org.uncommons.reportng.escape-output>false</org.uncommons.reportng.escape-output>

String reason = "http://jira.com/show_bug.cgi?id="
                    + bugid;


 Reporter.log("<a href=\""+ reason + "\">Bug " + bugid + "</a>" );

You can get the hyperlink in the testng html reports with the above code.



On Tue, Jul 1, 2014 at 8:27 AM, Alexander Schikora <[hidden email]> wrote:
luckily it doesn't, you might wanna try false instead of true and check what escaping actually means ;)

Am Dienstag, 1. Juli 2014 16:45:07 UTC+2 schrieb Rafael Carvalho:
How insert html within of the report.log() ?

I try with Reporter.setEscapeHtml(true); but doesn't work!

Em sexta-feira, 10 de dezembro de 2010 11h43min42s UTC-2, jrock2004 escreveu:
Now the top section and the title of each tests, are these
configurable? Thanks


On Dec 6, 5:10 pm, jrock2004 <[hidden email]> wrote:

> That did it. Cool that I did not know so that opens up a lot for me,
> thank you.
>
> On Dec 6, 5:03 pm, Cédric Beust ♔ <[hidden email]> wrote:
>
>
>
> > It's HTML, try with a <br> or <p>.
>
> > --
> > Cédric
>
> > On Mon, Dec 6, 2010 at 1:57 PM, jrock2004 <[hidden email]> wrote:
> > > Ok I am trying to make the appearance of how the emailable report from
> > > the reporter.log method look a little fancier. I want to do something
> > > like this:
>
> > > User ID:
> > > [hidden email]
>
> > > So this is how I am coding it
>
> > > Reporter.log("User ID: \n" + userID);
>
> > > Is this not correct? Is their a way I can better style the emailable-
> > > report.html? Thanks
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "testng-users" group.
> > > To post to this group, send email to [hidden email].
> > > To unsubscribe from this group, send email to
> > > testng-users...@googlegroups.com<testng-users%2Bunsubscribe@google groups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/testng-users?hl=en.
>
> > --
> > Cédric

--
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 http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.



--
Subramanyam

--
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 http://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: Reporter.log newline

Rafael Carvalho
In reply to this post by CreeTar
in fact, I need to build a table and organize the output of the results in this table.

So I thought I'd insert html into the report.log ().

Em terça-feira, 1 de julho de 2014 12h27min42s UTC-3, Alexander Schikora escreveu:
luckily it doesn't, you might wanna try false instead of true and check what escaping actually means ;)

Am Dienstag, 1. Juli 2014 16:45:07 UTC+2 schrieb Rafael Carvalho:
How insert html within of the report.log() ?

I try with Reporter.setEscapeHtml(true); but doesn't work!

Em sexta-feira, 10 de dezembro de 2010 11h43min42s UTC-2, jrock2004 escreveu:
Now the top section and the title of each tests, are these
configurable? Thanks


On Dec 6, 5:10 pm, jrock2004 <[hidden email]> wrote:

> That did it. Cool that I did not know so that opens up a lot for me,
> thank you.
>
> On Dec 6, 5:03 pm, Cédric Beust ♔ <[hidden email]> wrote:
>
>
>
> > It's HTML, try with a <br> or <p>.
>
> > --
> > Cédric
>
> > On Mon, Dec 6, 2010 at 1:57 PM, jrock2004 <[hidden email]> wrote:
> > > Ok I am trying to make the appearance of how the emailable report from
> > > the reporter.log method look a little fancier. I want to do something
> > > like this:
>
> > > User ID:
> > > [hidden email]
>
> > > So this is how I am coding it
>
> > > Reporter.log("User ID: \n" + userID);
>
> > > Is this not correct? Is their a way I can better style the emailable-
> > > report.html? Thanks
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "testng-users" group.
> > > To post to this group, send email to [hidden email].
> > > To unsubscribe from this group, send email to
> > > testng-users...@googlegroups.com<testng-users%2Bunsubscribe@google <a href="http://groups.com" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgroups.com\46sa\75D\46sntz\0751\46usg\75AFQjCNEW6YbLM8_fDrEdUtYVuEzF9AaTCg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgroups.com\46sa\75D\46sntz\0751\46usg\75AFQjCNEW6YbLM8_fDrEdUtYVuEzF9AaTCg';return true;">groups.com>
> > > .
> > > For more options, visit this group at
> > ><a href="http://groups.google.com/group/testng-users?hl=en" target="_blank" onmousedown="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;" onclick="this.href='http://groups.google.com/group/testng-users?hl\75en';return true;">http://groups.google.com/group/testng-users?hl=en.
>
> > --
> > Cédric

--
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 http://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: Reporter.log newline

Gagan Maheshwari
In reply to this post by JROCK2004
I am trying to introduce html tags in  my testng report, so in order to do that i tried with Reporter.setEscapeHtml(true); and Reporter.setEscapeHtml(false); but not one of them is working. Please help me out

On Tuesday, December 7, 2010 at 3:27:46 AM UTC+5:30, jrock2004 wrote:
Ok I am trying to make the appearance of how the emailable report from
the reporter.log method look a little fancier. I want to do something
like this:

User ID:
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6bFXJTnpIPgJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jjj...@...

So this is how I am coding it

Reporter.log("User ID: \n" + userID);

Is this not correct? Is their a way I can better style the emailable-
report.html? 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.
Reply | Threaded
Open this post in threaded view
|

Re: Reporter.log newline

⇜Krishnan Mahadevan⇝

What version of TestNG are you working with ?

 

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 Gagan Maheshwari <[hidden email]>
Reply-To: <[hidden email]>
Date: Sunday, September 3, 2017 at 11:09 AM
To: testng-users <[hidden email]>
Subject: [testng-users] Re: Reporter.log newline

 

I am trying to introduce html tags in  my testng report, so in order to do that i tried with Reporter.setEscapeHtml(true); and Reporter.setEscapeHtml(false); but not one of them is working. Please help me out

On Tuesday, December 7, 2010 at 3:27:46 AM UTC+5:30, jrock2004 wrote:

Ok I am trying to make the appearance of how the emailable report from
the reporter.log method look a little fancier. I want to do something
like this:

User ID:
<a href="javascript:" target="_blank">jjj...@...

So this is how I am coding it

Reporter.log("User ID: \n" + userID);

Is this not correct? Is their a way I can better style the emailable-
report.html? 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.