summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@alfadeo.de>2011-07-15 12:10:27 +0200
committergebele <gebele@alfadeo.de>2011-07-15 12:10:27 +0200
commitf8bf2cf8bf92aa5b8d054c6e04aeff997f0fcc52 (patch)
tree029ff32806ac0c27ef3727beb9ae461c06d33a9d
parent4094db2e12f64ec3196b8291b7f96236678ec617 (diff)
defined teardown and time output
-rw-r--r--toxcreate.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/toxcreate.rb b/toxcreate.rb
index 8d19bb4..cec5f1e 100644
--- a/toxcreate.rb
+++ b/toxcreate.rb
@@ -19,9 +19,13 @@ class ToxCreateTest < Test::Unit::TestCase
def setup
@user = "guest"
@password = "guest"
+ puts Time.now.localtime.strftime("%Y-%m-%d %H:%M:%S")
end
def teardown
+ Capybara.reset_sessions!
+ puts Time.now.localtime.strftime("%Y-%m-%d %H:%M:%S")
+ sleep 5
end
=begin
@@ -45,7 +49,7 @@ class ToxCreateTest < Test::Unit::TestCase
assert page.has_content? "Welcome guest!"
end
=end
- def test_02_toxcreate # works only with akephalos
+ def test_02_toxcreate # works only with akephalos
visit CONFIG[:services]["opentox-toxcreate"]
assert page.has_content?('Upload training data')
attach_file('file', "./data/hamster_carcinogenicity.mini.csv")
@@ -86,9 +90,8 @@ class ToxCreateTest < Test::Unit::TestCase
find(:xpath, './/input[5]').click
click_on "update"
end
- sleep 5
end
-
+
def test_05_inspect_policies
visit CONFIG[:services]["opentox-toxcreate"]
click_on "Inspect"
@@ -99,7 +102,7 @@ class ToxCreateTest < Test::Unit::TestCase
find(:xpath, './/input[4]').click
click_on "update"
end
- sleep 5
+
end
def test_06_inspect_policies