[wtr-general] Re: Test Results output capturing

2009-02-05 Thread H2006

Great! this works now.

Question: I have multiple tests running in Test plan. If I use this in
each file.. then it creates new result file for each testscript. Is it
possible to have only one result file for testplan and all other
scripts insert the output in the same?

Thanks..


On Jan 21, 6:47 am, JArkelen johnvanarke...@gmail.com wrote:
 Can you put this:

 r = CLReport.new()
   testReport = r.createReport('C:\\ruby\\results\\results.html')

 in the class? In don't think if you make a cal for r in the class it
 knows the report class when it is created outside?

 On Jan 21, 2:57 am, H2006 hemali2...@gmail.com wrote:

  Here is the sample code for which i am trying to capture the output. .
  while running this code, I am not getting any error today but output
  is still not written to thefile. Can u please help

  begin
# Create the new report
r = CLReport.new()
testReport = r.createReport('C:\\ruby\\results\\results.html')

  class TC_run_demoTest

def self.suite

  $browser = Watir::Browser.new
  puts  Beginning of test: 
  $browser.goto(www.yahoo.com)
  $browser.text_field(:name, p).set(ruby)
  $browser.button(:id, searchsubmit).click

   begin
   assert($browser.text.include?(Programming Ruby) )
  r.addtoReport(testReport, 'Found test string Programming Ruby',
  'PASSED', 'Test passed')
   rescue = e
  r.addtoReport(testReport, 'String not found', 'FAILED',
  'test failed')
  end
  $browser.close
 end
  end

  r.finishReport(testReport)
  rescue
# Send crash info to report
  r.addtoReport(testReport, 'Test crashed with reason '+$!,
  'FAILED', 'Test crashed!')
  r.finishReport(testReport)
  end

  ---

  On Jan 17, 12:34 am, JArkelen johnvanarke...@gmail.com wrote:

   Did you use this line to create the variable:
   r = CLReport.new()

   Please post your code so I can have a look.

   On Jan 16, 10:13 pm, H2006 hemali2...@gmail.com wrote:

Hi

I am trying to use this class but constantly getting Error: HTML
   Resultfileis created  but No results added.
Can someone help please ??

  1) Error:
test_print_assertion(TC_demo):
NameError: undefined local variable or method `r' for #TC_demo:
0x3a4682c
temp.rb:49:in `test_print_assertion'

Thanks.

On Jan 16, 2:56 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:

 Thanks A lot JArkelen,

 This is exciting :-)
 I have started using this Class ;-)

 On Jan 15, 8:03 pm, JArkelen johnvanarke...@gmail.com wrote:

 http://wiki.openqa.org/display/WTR/HTML+report+class

  On Jan 15, 7:53 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:

   I got it through Rspec:
   spec usingrspec.rb --format html  testresult.html

   On Jan 15, 11:31 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:

I want to populate Watir results to HTML format. Is there any 
way to
do this?
Or is there any way to have all 'puts' goes to HTMLfile?
--~--~-~--~~~---~--~~
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: Test Results output capturing

2009-01-21 Thread JArkelen

Can you put this:

r = CLReport.new()
  testReport = r.createReport('C:\\ruby\\results\\results.html')

in the class? In don't think if you make a cal for r in the class it
knows the report class when it is created outside?

On Jan 21, 2:57 am, H2006 hemali2...@gmail.com wrote:
 Here is the sample code for which i am trying to capture the output. .
 while running this code, I am not getting any error today but output
 is still not written to the file. Can u please help

 begin
   # Create the new report
   r = CLReport.new()
   testReport = r.createReport('C:\\ruby\\results\\results.html')

 class TC_run_demoTest

   def self.suite

     $browser = Watir::Browser.new
     puts  Beginning of test: 
     $browser.goto(www.yahoo.com)
     $browser.text_field(:name, p).set(ruby)
     $browser.button(:id, searchsubmit).click

      begin
          assert($browser.text.include?(Programming Ruby) )
             r.addtoReport(testReport, 'Found test string Programming Ruby',
 'PASSED', 'Test passed')
      rescue = e
             r.addtoReport(testReport, 'String not found', 'FAILED',
 'test failed')
     end
     $browser.close
    end
 end

     r.finishReport(testReport)
 rescue
   # Send crash info to report
     r.addtoReport(testReport, 'Test crashed with reason '+$!,
 'FAILED', 'Test crashed!')
     r.finishReport(testReport)
 end

 ---

 On Jan 17, 12:34 am, JArkelen johnvanarke...@gmail.com wrote:

  Did you use this line to create the variable:
  r = CLReport.new()

  Please post your code so I can have a look.

  On Jan 16, 10:13 pm, H2006 hemali2...@gmail.com wrote:

   Hi

   I am trying to use this class but constantly getting Error: HTML
   Result file is created  but No results added.
   Can someone help please ??

 1) Error:
   test_print_assertion(TC_demo):
   NameError: undefined local variable or method `r' for #TC_demo:
   0x3a4682c
       temp.rb:49:in `test_print_assertion'

   Thanks.

   On Jan 16, 2:56 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:

Thanks A lot JArkelen,

This is exciting :-)
I have started using this Class ;-)

On Jan 15, 8:03 pm, JArkelen johnvanarke...@gmail.com wrote:

http://wiki.openqa.org/display/WTR/HTML+report+class

 On Jan 15, 7:53 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:

  I got it through Rspec:
  spec usingrspec.rb --format html  testresult.html

  On Jan 15, 11:31 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:

   I want to populate Watir results to HTML format. Is there any way 
   to
   do this?
   Or is there any way to have all 'puts' goes to HTML file?
--~--~-~--~~~---~--~~
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: Test Results output capturing

2009-01-16 Thread Jagdeep Jain

Thanks A lot JArkelen,

This is exciting :-)
I have started using this Class ;-)

On Jan 15, 8:03 pm, JArkelen johnvanarke...@gmail.com wrote:
 http://wiki.openqa.org/display/WTR/HTML+report+class

 On Jan 15, 7:53 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:

  I got it through Rspec:
  spec usingrspec.rb --format html  testresult.html

  On Jan 15, 11:31 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:

   I want to populate Watir results to HTML format. Is there any way to
   do this?
   Or is there any way to have all 'puts' goes to HTML file?
--~--~-~--~~~---~--~~
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: Test Results output capturing

2009-01-16 Thread H2006

Hi

I am trying to use this class but constantly getting Error: HTML
Result file is created  but No results added.
Can someone help please ??


  1) Error:
test_print_assertion(TC_demo):
NameError: undefined local variable or method `r' for #TC_demo:
0x3a4682c
temp.rb:49:in `test_print_assertion'

Thanks.


On Jan 16, 2:56 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:
 Thanks A lot JArkelen,

 This is exciting :-)
 I have started using this Class ;-)

 On Jan 15, 8:03 pm, JArkelen johnvanarke...@gmail.com wrote:

 http://wiki.openqa.org/display/WTR/HTML+report+class

  On Jan 15, 7:53 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:

   I got it through Rspec:
   spec usingrspec.rb --format html  testresult.html

   On Jan 15, 11:31 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:

I want to populate Watir results to HTML format. Is there any way to
do this?
Or is there any way to have all 'puts' goes to HTML file?
--~--~-~--~~~---~--~~
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: Test Results output capturing

2009-01-15 Thread JArkelen

http://wiki.openqa.org/display/WTR/HTML+report+class

On Jan 15, 7:53 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:
 I got it through Rspec:
 spec usingrspec.rb --format html  testresult.html

 On Jan 15, 11:31 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:

  I want to populate Watir results to HTML format. Is there any way to
  do this?
  Or is there any way to have all 'puts' goes to HTML file?
--~--~-~--~~~---~--~~
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: Test Results output capturing

2009-01-14 Thread Jagdeep Jain


I got it through Rspec:
spec usingrspec.rb --format html  testresult.html


On Jan 15, 11:31 am, Jagdeep Jain jagdeep.j...@gmail.com wrote:
 I want to populate Watir results to HTML format. Is there any way to
 do this?
 Or is there any way to have all 'puts' goes to HTML file?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---