Dear all,
Can anyone help me out with this first step.
I got error when i test the file unittest.rb in C:\watir\unittest.rb.
 
Here is the error:-
 

    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1160:in `check_for_http_error'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1141:in `set_defaults'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1135:in `call'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1436:in `run_error_checks'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1435:in `each'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1435:in `run_error_checks'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1419:in `wait'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1254:in `goto'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2797:in `save'
    C:/Watir/unittests/../unittests/images_test.rb:160:in `safe_file_block'
    C:/Watir/unittests/../unittests/images_test.rb:160:in `each'
    C:/Watir/unittests/../unittests/images_test.rb:160:in `safe_file_block'
    C:/Watir/unittests/../unittests/images_test.rb:143:in `test_save_local_image
'

  7) Error:
test_save_local_image_returns_original_page(TC_Images):
Watir::Exception::NavigationException: Cannot find server or DNS Error
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1160:in `check_for_http_error'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1141:in `set_defaults'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1135:in `call'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1436:in `run_error_checks'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1435:in `each'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1435:in `run_error_checks'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1419:in `wait'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1254:in `goto'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2797:in `save'
    C:/Watir/unittests/../unittests/images_test.rb:160:in `safe_file_block'
    C:/Watir/unittests/../unittests/images_test.rb:160:in `each'
    C:/Watir/unittests/../unittests/images_test.rb:160:in `safe_file_block'
    C:/Watir/unittests/../unittests/images_test.rb:153:in `test_save_local_image
_returns_original_page'

  8) Failure:
test_front(TC_MinMax) [C:/Watir/unittests/../unittests/minmax_test.rb:22]:
<false> is not true.

  9) Failure:
test_confirm(TC_PopUps) [C:/Watir/unittests/../unittests/popups_test.rb:36]:
<false> is not true.

 10) Failure:
test_links_and_images_in_table(TC_Tables) [C:/Watir/unittests/../unittests/table
_test.rb:165]:
<"106"> expected but was
<"28">.

182 tests, 1048 assertions, 8 failures, 2 errors

C:\Watir\unittests>all_tests.rb
Loaded suite C:/Watir/unittests/all_tests
Started
..............FF......................F...............Starting win setFileDialog
 in new process. Setting text file://C:/Watir/unittests/html/fileupload.html
Starting app: c:/ruby/lib/ruby/site_ruby/1.8/watir/setFileDialog.rb file://C:/Wa
tir/unittests/html/fileupload.html
...........-----------Objects in  page -------------
                  id=                 src="">button            name=b1             id=b2               value=Click Me      al
t=                src="">                  id=
                  id=                 value=0
                  id=                 value=0
checkbox          name=check1         id=                 value=10            al
t=                src="">checkbox          name=check1         id=                 value=20            al
t=                src="">checkbox          name=check1         id=                 value=30            al
t=                src="">radio             name=r1             id=                 value=a             al
t=                src="">radio             name=r1             id=                 value=b             al
t=                src="">radio             name=r1             id=                 value=c             al
t=                src= "">radio             name=r1             id=                 value=d             al
t=                src="">text              name=               id=t1               value=              al
t=                src=""> text              name=               id=t2               value=              al
t=                src="">select-one        name=s1             id=                 value=
select-multiple   name=s2             id=                 value=
submit            name=               id=                 value=Submit        al
t=                src="">reset             name=               id=reset_button     value=Reset         al
t=                src=""> text              name=g1             id=                 value=textfield     al
t=                src="">button            name=g1             id=                 value=button        al
t=                src="">checkbox          name=g1             id=                 value=1             al
t=                src="">radio             name=g1             id=                 value=2             al
t=                src="">text              name=               id=g1               value=textfield_id  al
t=                src="">button            name=               id=g1               value=button_id     al
t=                src="">checkbox          name=               id=g1               value=1_id          al
t=                src= "">radio             name=               id=g1               value=2_id          al
t=                src="">text              name=tt1            id=                 value=              al
t=                src=""> image             name=imm            id=                 value=              al
t=submit          src="" href="file:///C:/Watir/unittests/html/images/button.jpg">file:///C:/Watir/unittests/html/images/button.jpg
hidden            name=hid1           id=                 value=              al
t=                src="">hidden            name=               id=hidden_1         value=              al
t=                src="">button            name=               id=                 value=Show Hidden   al
t=                src="">text              name=vis1           id=                 value=              al
t=                src="">text              name=vis2           id=                 value=              al
t=                src="">

 

.
<BODY>CVS Revision: "$Revision: 1.6 $" <BR><BR>
<TABLE>
<TBODY>
<TR>
<TD>
<FORM action="" method=get><INPUT id=b2 type=button value="Click Me" name
=b1> </FORM>
<TD>
<TR>
<TD>
<FORM name=test2 action="" method=get>
<UL>
<LI>ListItem1
<LI><SPAN>ListItem2</SPAN> </LI></UL><BR><INPUT type=checkbox value=10 name=chec
k1> <BR><INPUT type=checkbox value=20 name=check1> <BR><INPUT type=checkbox valu
e=30 name=check1> <BR><INPUT type=radio value=a name=r1 selected> <BR><INPUT typ
e=radio value=b name=r1> <BR><INPUT type=radio value=c name=r1> <BR><INPUT type=
radio value=d name=r1> <BR><INPUT id=t1> <BR><INPUT id=t2> <BR><SELECT name=s1>
<OPTION selected>1</OPTION> <OPTION>2</OPTION></SELECT> <BR><SELECT multiple nam
e=s2 visible="3"> <OPTION>1</OPTION> <OPTION>2</OPTION> <OPTION>3</OPTION> <OPTI
ON>4</OPTION> <OPTION>5</OPTION> <OPTION>6</OPTION></SELECT> <BR><INPUT type=sub
mit value=Submit><INPUT id=reset_button type=reset value=Reset> </FORM>
<TD>
<TR bgColor=blue>
<TD><INPUT value=textfield name=g1> <BR><INPUT type=button value=button name=g1>
 <BR><INPUT type=checkbox value=1 name=g1> <BR><INPUT type=radio value=2 name=g1
> <BR>
<TD>These objects all have the same name
<TR bgColor=lightblue>
<TD><INPUT id=g1 value=textfield_id> <BR><INPUT id=g1 type=button value=button_i
d> <BR><INPUT id=g1 type=checkbox value=1_id> <BR><INPUT id=g1 type=radio value=
2_id> <BR>
<TD>These objects all have the same id
<TR>
<TD>
<FORM name=buttonsubmit action= "" method=get>This form is has a submit bu
tton that is an image <INPUT name=tt1> <INPUT type=image alt=submit src="">button.jpg" name=imm> </FORM>
<FORM name=has_a_hidden>This is in a form. The form has hidden objects. <BR>The
first has a name - hid1<INPUT type=hidden name=hid1> <BR>The second has an id- h
idden_1<INPUT id=hidden_1 type=hidden> Click This Button to see the values in th
ese boxes <INPUT type=button value="Show Hidden
"> <BR><INPUT name=vis1> <BR><INPUT name=vis2> </FORM></TR></TBODY></TABLE></BOD
Y>
.CVS Revision: "$Revision: 1.6 $"


ListItem1
ListItem2

 

 

 

 


 1 2
 1 2 3 4 5 6

 

 

These objects all have the same name

 


These objects all have the same id
This form is has a submit button that is an image
This is in a form. The form has hidden objects.
The first has a name - hid1
The second has an id- hidden_1 Click This Button to see the values in these boxe
s
.There are 4 forms
Form name:
       id:
   method: get
   action: pass.html
Form name: test2
       id:
   method: get
   action: pass2.html
Form name: buttonsubmit
       id:
   method: get
   action: pass.html
Form name: has_a_hidden
       id:
   method: get
   action:
..................F..FEE.Firing event to make button enabled
Clicking the button
..............F.....Starting start rubyw c:\ruby\lib\ruby\SITE_R~1\1.8\watir\cli
ckJSDialog.rb OK 0.5
Starting start rubyw c:\ruby\lib\ruby\SITE_R~1\1.8\watir\clickJSDialog.rb Cancel
 0.5
.Starting start rubyw c:\ruby\lib\ruby\SITE_R~1\1.8\watir\clickJSDialog.rb OK 0.
5
......................................F.............................
Finished in 565.873 seconds.

  1) Failure:
test_bmp(TC_Capture) [C:/Watir/unittests/../unittests/screen_capture_test.rb:45]
:
<false> is not true.

  2) Failure:
test_jpeg(TC_Capture) [C:/Watir/unittests/../unittests/screen_capture_test.rb:33
]:
<false> is not true.

  3) Failure:
test_enter(TC_Fields) [C:/Watir/unittests/../unittests/send_keys_test.rb:25]:
<nil> is not true.

  4) Failure:
test_imageHasLoaded(TC_Images) [C:/Watir/unittests/../unittests/images_test.rb:7
6]:
<false> is not true.

  5) Failure:
test_image_properties(TC_Images) [C:/Watir/unittests/../unittests/images_test.rb
:104]:
<"88"> expected but was
<"30">.

  6) Error:
test_save_local_image(TC_Images):
Watir::Exception::NavigationException: Cannot find server or DNS Error
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1160:in `check_for_http_error'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1141:in `set_defaults'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1135:in `call'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1436:in `run_error_checks'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1435:in `each'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1435:in `run_error_checks'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1419:in `wait'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1254:in `goto'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2797:in `save'
    C:/Watir/unittests/../unittests/images_test.rb:160:in `safe_file_block'
    C:/Watir/unittests/../unittests/images_test.rb:160:in `each'
    C:/Watir/unittests/../unittests/images_test.rb:160:in `safe_file_block'
    C:/Watir/unittests/../unittests/images_test.rb:143:in `test_save_local_image
'

  7) Error:
test_save_local_image_returns_original_page(TC_Images):
Watir::Exception::NavigationException: Cannot find server or DNS Error
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1160:in `check_for_http_error'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1141:in `set_defaults'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1135:in `call'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1436:in `run_error_checks'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1435:in `each'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1435:in `run_error_checks'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1419:in `wait'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1254:in `goto'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2797:in `save'
    C:/Watir/unittests/../unittests/images_test.rb:160:in `safe_file_block'
    C:/Watir/unittests/../unittests/images_test.rb:160:in `each'
    C:/Watir/unittests/../unittests/images_test.rb:160:in `safe_file_block'
    C:/Watir/unittests/../unittests/images_test.rb:153:in `test_save_local_image
_returns_original_page'

  8) Failure:
test_front(TC_MinMax) [C:/Watir/unittests/../unittests/minmax_test.rb:22]:
<false> is not true.

  9) Failure:
test_links_and_images_in_table(TC_Tables) [C:/Watir/unittests/../unittests/table
_test.rb:165]:
<"106"> expected but was
<"28">.

182 tests, 1048 assertions, 7 failures, 2 errors

C:\Watir\unittests>

 

Your Help is Highly needed

Thanking you.

p.s. my os is win2k pro with service pack 4 and IE 6 install.

 

Regards,

Shim Wung

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to