Hello,

I have a question for the test case below.  When the Notepad window is not 
open, the test case run and complete without warning or error.  Looks like 
autoit statements do not provide warning and assert is passed.  

I thought if the Notepad is not open, autoit statements should provide warning 
and assert should fail.

Can you please confirm?  If it should be failed, why it is not…

Thanks!
Kui


def test_file_Exists
    goto_page
….
    
    autoit = WIN32OLE.new('AutoItX3.Control')
    
    autoit.WinWait("test.txt - Notepad", nil, 5)
    autoit.WinActive("test.txt - Notepad")        
    assert(autoit.WinExists("test.txt - Notepad"))
    puts ("Window exist")
    autoit.WinKill("test.txt - Notepad")
    
  end
end
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to