[wtr-general] Re: customize xml generated by ci_reports

2009-08-25 Thread Test Test

Thnx Dylan

On Aug 24, 9:28 pm, Dylan mej...@gmail.com wrote:
 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 checktestingthi...@gmail.com 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 pals.sha...@gmail.com 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 ynot...@gmail.com 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 watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: CI_reporter usage

2009-08-25 Thread Test Test

Tiffany, Its working perfectly fine.

Thanks
D G

On Aug 24, 8:01 pm, tcfodor tcfo...@comcast.net wrote:
 I've automated adding the stylesheet and renaming the file.  I've
 posted an example harness here:

 http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with+Dat...

 -Tiffany

 On Aug 24, 12:59 am, Test Test checktestingthi...@gmail.com wrote:

  Tiffany,

  Its working fine, Thanks.

  Is there any way that it creates the file in html format directly instead of
  first adding

  ?xml-stylesheet type=text/xsl href=transform-results.xsl?

  and then open in ie/FF.

  Thanks
  D G

  On Mon, Aug 24, 2009 at 11:33 AM, Test Test 
  checktestingthi...@gmail.comwrote:

   Hi Tiffany,

   I tried this, after running my code it create ‘test/reports’ 
   subdirectories
   and place the xml output of my tests in the reports folder.

   Now you have written that we have to change in my xml output by adding 
   this
   line at line 2:

   ?xml-stylesheet type=text/xsl href=transform-results.xsl?

   Note * I have transform-results.xsl in \test\reports folder.

   I have updated my xml ouptut with the following:

   ?xml-stylesheet type=text/xsl href=transform-results.xsl?

   But now when i run my code again, it creates new xml each time and shows 
   no
   html ouput.

   I know i am wrong some where, please correct me where i am wrong.

   Thanks
   D G

   On Fri, Aug 21, 2009 at 11:21 PM, tcfodor tcfo...@comcast.net wrote:

   Hi DG,

   I've posted my solution on my blog:

  http://tcfodor.wordpress.com/2009/07/23/ci_reporter-output-for-watir/

   Hope this helps!

   -Tiffany

   On Aug 21, 5:40 am, Test Test checktestingthi...@gmail.com wrote:
Hi,

I have:
ruby 1.8
watir 1.6.2
ci_reporter-1.6.0

Can any body provide a link or example of how to start the use of
ci_reporter in my script to generate xml report.

Say for a simple script like:

require 'watir'
require 'rubygems'
require 'win32ole'
ie = Watir::IE.new
autoit = WIN32OLE.new('AutoItX3.Control')
ie.goto('http://testurl')
assert(ie.link(:text, 'About Test').exists?)
ie.text_field(:name,text1).set(Test)
ie.button(:name,submit).click_no_wait
autoit.WinWaitActive([Class:#32770])
text = autoit.ControlGetText([Class:#32770], , Static2)
autoit.ControlClick([Class:#32770],,Button1)
puts text

Thanks in advance.

Regards
D G
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: CI_reporter usage

2009-08-24 Thread Test Test
Hi Tiffany,

I tried this, after running my code it create ‘test/reports’ subdirectories
and place the xml output of my tests in the reports folder.

Now you have written that we have to change in my xml output by adding this
line at line 2:

?xml-stylesheet type=text/xsl href=transform-results.xsl?

Note * I have transform-results.xsl in \test\reports folder.

I have updated my xml ouptut with the following:
?xml-stylesheet type=text/xsl href=transform-results.xsl?

But now when i run my code again, it creates new xml each time and shows no
html ouput.

I know i am wrong some where, please correct me where i am wrong.


Thanks
D G

On Fri, Aug 21, 2009 at 11:21 PM, tcfodor tcfo...@comcast.net wrote:


 Hi DG,

 I've posted my solution on my blog:

 http://tcfodor.wordpress.com/2009/07/23/ci_reporter-output-for-watir/

 Hope this helps!

 -Tiffany

 On Aug 21, 5:40 am, Test Test checktestingthi...@gmail.com wrote:
  Hi,
 
  I have:
  ruby 1.8
  watir 1.6.2
  ci_reporter-1.6.0
 
  Can any body provide a link or example of how to start the use of
  ci_reporter in my script to generate xml report.
 
  Say for a simple script like:
 
  require 'watir'
  require 'rubygems'
  require 'win32ole'
  ie = Watir::IE.new
  autoit = WIN32OLE.new('AutoItX3.Control')
  ie.goto('http://testurl')
  assert(ie.link(:text, 'About Test').exists?)
  ie.text_field(:name,text1).set(Test)
  ie.button(:name,submit).click_no_wait
  autoit.WinWaitActive([Class:#32770])
  text = autoit.ControlGetText([Class:#32770], , Static2)
  autoit.ControlClick([Class:#32770],,Button1)
  puts text
 
  Thanks in advance.
 
  Regards
  D G
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: customize xml generated by ci_reports

2009-08-24 Thread Test Test

Hi Tony,

My test code is:

require 'watir'
require 'test'
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


And test.rb is in the local directory which contains the code given
in http://pastie.org/554831;.

But when i run it still gives me: no such file to load -- ClassAttr
(LoadError).

Please correct me where i am wrong.

Thanks
D G

On Jul 24, 4:04 pm, pallavi shashidhar pals.sha...@gmail.com wrote:
 Hi Tony,

 I think i used the previous code inhttp://pastie.org/554062instead 
 ofhttp://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 ynot...@gmail.com 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 watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: customize xml generated by ci_reports

2009-08-24 Thread Test Test

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 pals.sha...@gmail.com wrote:
 Hi Tony,

 I think i used the previous code inhttp://pastie.org/554062instead 
 ofhttp://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 ynot...@gmail.com 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 watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: CI_reporter usage

2009-08-24 Thread Test Test
Tiffany,

Its working fine, Thanks.

Is there any way that it creates the file in html format directly instead of
first adding

?xml-stylesheet type=text/xsl href=transform-results.xsl?

and then open in ie/FF.

Thanks
D G


On Mon, Aug 24, 2009 at 11:33 AM, Test Test checktestingthi...@gmail.comwrote:

 Hi Tiffany,

 I tried this, after running my code it create ‘test/reports’ subdirectories
 and place the xml output of my tests in the reports folder.

 Now you have written that we have to change in my xml output by adding this
 line at line 2:

 ?xml-stylesheet type=text/xsl href=transform-results.xsl?

 Note * I have transform-results.xsl in \test\reports folder.

 I have updated my xml ouptut with the following:

 ?xml-stylesheet type=text/xsl href=transform-results.xsl?

 But now when i run my code again, it creates new xml each time and shows no
 html ouput.

 I know i am wrong some where, please correct me where i am wrong.


 Thanks
 D G


 On Fri, Aug 21, 2009 at 11:21 PM, tcfodor tcfo...@comcast.net wrote:


 Hi DG,

 I've posted my solution on my blog:

 http://tcfodor.wordpress.com/2009/07/23/ci_reporter-output-for-watir/

 Hope this helps!

 -Tiffany

 On Aug 21, 5:40 am, Test Test checktestingthi...@gmail.com wrote:
  Hi,
 
  I have:
  ruby 1.8
  watir 1.6.2
  ci_reporter-1.6.0
 
  Can any body provide a link or example of how to start the use of
  ci_reporter in my script to generate xml report.
 
  Say for a simple script like:
 
  require 'watir'
  require 'rubygems'
  require 'win32ole'
  ie = Watir::IE.new
  autoit = WIN32OLE.new('AutoItX3.Control')
  ie.goto('http://testurl')
  assert(ie.link(:text, 'About Test').exists?)
  ie.text_field(:name,text1).set(Test)
  ie.button(:name,submit).click_no_wait
  autoit.WinWaitActive([Class:#32770])
  text = autoit.ControlGetText([Class:#32770], , Static2)
  autoit.ControlClick([Class:#32770],,Button1)
  puts text
 
  Thanks in advance.
 
  Regards
  D G
 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] CI_reporter usage

2009-08-21 Thread Test Test

Hi,

I have:
ruby 1.8
watir 1.6.2
ci_reporter-1.6.0

Can any body provide a link or example of how to start the use of
ci_reporter in my script to generate xml report.

Say for a simple script like:

require 'watir'
require 'rubygems'
require 'win32ole'
ie = Watir::IE.new
autoit = WIN32OLE.new('AutoItX3.Control')
ie.goto('http://testurl')
assert(ie.link(:text, 'About Test').exists?)
ie.text_field(:name,text1).set(Test)
ie.button(:name,submit).click_no_wait
autoit.WinWaitActive([Class:#32770])
text = autoit.ControlGetText([Class:#32770], , Static2)
autoit.ControlClick([Class:#32770],,Button1)
puts text


Thanks in advance.


Regards
D G

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---