Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Adding more information to html report.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Lidia  
View profile  
 More options Oct 27, 10:45 pm
From: Lidia <lid...@gmail.com>
Date: Tue, 27 Oct 2009 19:45:51 -0700 (PDT)
Local: Tues, Oct 27 2009 10:45 pm
Subject: Adding more information to html report.
Hi

In our testing we call TestNG twice, to execute the same set of tests
on different browser.  The end result is such that we have two sets of
results, stored under test-output/<browser> directory.  In order to
check results, we have to view html reports for each browser
separately and can't tell from the report what browser it belongs to
(other than by url).

Is there a way to extend current TestNG reporter to add browser
information to the report xml file (testng-results.xml) so that it is
reported in the html reports?

Any input appreciated.

Thanks
Lidia


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Oct 27, 10:52 pm
From: Cédric Beust ♔ <cbe...@google.com>
Date: Tue, 27 Oct 2009 19:52:06 -0700
Local: Tues, Oct 27 2009 10:52 pm
Subject: Re: [testng-users] Adding more information to html report.

Hi Lidia,

Sure, everything is possible :-)

If this extra information will be useful to all TestNG users, I'll be happy
to accept patches to the existing reporter, but if it's more specific to
your situation (which appears to be the case), you should probably just
implement your own reporter...

--
Cedric

--
Cédric

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lidia  
View profile  
 More options Nov 2, 11:56 pm
From: Lidia <lid...@gmail.com>
Date: Mon, 2 Nov 2009 20:56:54 -0800 (PST)
Local: Mon, Nov 2 2009 11:56 pm
Subject: Re: Adding more information to html report.
Let me rephrase the question, to make it more generic.

By default tests are reported based on the test class/method names.
The question is, can I change them programatically?

I see from the API description, that I can provide testName when using
@Test annotation on the class.  I get a browser name through system
property.  I would like to append browser name to the testName (and
ideally method names as well).  Is there a way to do it?

Thanks
Lidia


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Nov 3, 12:12 am
From: Cédric Beust ♔ <cbe...@google.com>
Date: Mon, 2 Nov 2009 21:12:26 -0800
Local: Tues, Nov 3 2009 12:12 am
Subject: Re: [testng-users] Re: Adding more information to html report.

Hi Lidia,

On Mon, Nov 2, 2009 at 8:56 PM, Lidia <lid...@gmail.com> wrote:

> Let me rephrase the question, to make it more generic.

> By default tests are reported based on the test class/method names.
> The question is, can I change them programatically?

> I see from the API description, that I can provide testName when using
> @Test annotation on the class.  I get a browser name through system
> property.  I would like to append browser name to the testName (and
> ideally method names as well).  Is there a way to do it?

Yes, that's what org.testng.ITest is for:  override getName() and return the
name of your test + name of the browser, and that name will appear in the
HTML reports (see a thread earlier today on this very topic).

--
***Cédric
*


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google