To view the results html-like you have to create an xsl stylesheet to format the xml data. Then add <?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?> to the top of your results file(s). Then you can just open the xml file and it will open fully formatted.
Here's the xsl stylesheet I use: http://pastie.org/593268 It probably wont work for you because I've made some changes to how the reporter outputs the xml file, but it should give you the basic idea. -Dylan On Aug 23, 11:52 pm, Test Test <[email protected]> wrote: > Tony, > I have added Class.Attr contents and now its working fine but my > requirement is to get report(s) in html format not xml. > > Please help. > > Thanks > D G > > On Jul 24, 4:04 pm, pallavi shashidhar <[email protected]> wrote: > > > Hi Tony, > > > I think i used the previous code > > inhttp://pastie.org/554062insteadofhttp://pastie.org/554831 > > It is now working fine for me. > > Thanx for all your replies. > > > Regards, > > Pallavi > > > On Fri, Jul 24, 2009 at 3:28 PM, Tony <[email protected]> wrote: > > > > Hi Pallavi, > > > > When using your modified file, you dont need to "require ci_reporter" > > > nor need to have it installed. > > > Just require the modified file. > > > > require 'watir' > > > #require 'ci/reporter/test_suite.rb' > > > require '<YOUR MODIFIED FILE>' > > > class TC_TEST_suite < Test::Unit::TestCase > > > def test_a_search > > > test_site = "http://www.google.com" > > > browser = Watir::Browser.new > > > browser.goto test_site > > > browser.text_field(:name, "q").set "pickaxe" > > > browser.button(:name, "btnG").click > > > end > > > end > > > > Thanks, > > > Tony --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
