*pony: gem install pony *smtp-tls: git://github.com/kilari/smtp_tls.git
#! ruby -Ku #!/usr/bin/env ruby require 'test/unit' require 'rubygems' require 'watir' require 'lib/watir_ajax_lib' testDomain = 'http://foofoo-test.org' class AppTest < Test::Unit::TestCase include Watir def test_login @ie = Watir::IE.new @ie.goto("#{testDomain}/login.aspx") @ie.text_field(:id, 'account').set(memid) @ie.text_field(:id, 'password').set('19700701') @ie.button(:xpath, "//input[@value='Login']").click @ie.watir_waitn_test('login-check', "logout") end end
-
send result mail with embedded logs
-
execute javascript
-
testname: test name for logging
-
assrttext: text for assertion
-
ajaxtext: text for assertion
-
wtvalue: time out(default 660sec.)
-
buttonsnum: quantity of buttons in view for waiting
-
wtvalue: time out(default 660sec.)
-
imagesnum: quantity of images in view for waiting
-
wtvalue: time out(default 660sec.)
-
linksnum: quantity of links in view for waiting
-
wtvalue: time out(default 660sec.)
-
imagesnum: quantity of images in view for waiting
-
wtvalue: time out(default 660sec.)
-
linktext: wating this link and click
-
wtvalue: time out(default 660sec.)
-
testname: test name for logging
-
assrttext: text for assertion
-
wtvalue: time out(default 660sec.)
-
testname: test name for logging
-
assrttext: text for assertion
-
fieldnumber: index number of field
-
wtvalue: time out(default 660sec.)
-
testname: test name for logging
-
assrttext: should not exsit text for assertion
-
wtvalue: time out(default 660sec.)
-
text: text for wating
-
fieldnumber: index number of field
-
wtvalue: time out(default 660sec.)
-
…
Made by: Watanabe Takanobu
Released under the MIT License: www.opensource.org/licenses/mit-license.php