summaryrefslogtreecommitdiff
path: root/toxcreate.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-07-28 17:34:01 +0000
committerChristoph Helma <helma@in-silico.ch>2011-07-28 17:34:01 +0000
commit4a84e96d4e40d11ed58ae810e7bfb9624c1222e6 (patch)
treea10575c44f93492035ae6b21bed3701bf8ef723e /toxcreate.rb
parent6d29bded8a59146755b07f07f35c44a19ec7d7da (diff)
sdf upload test added, toxcreate upload test not yet working (gui upload works)
Diffstat (limited to 'toxcreate.rb')
-rw-r--r--toxcreate.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/toxcreate.rb b/toxcreate.rb
index a298c9c..0853bf6 100644
--- a/toxcreate.rb
+++ b/toxcreate.rb
@@ -168,6 +168,22 @@ class ToxCreateTest < Test::Unit::TestCase
click_on "Create model"
end
end
+ # raises capybara errors, but gui works from browser
+ def test_11_toxcreate_sdf # works only with akephalos
+ Capybara.current_driver = :akephalos
+ #login(@browser, @user, @password)
+ visit CONFIG[:services]["opentox-toxcreate"]
+ assert page.has_content?('Upload training data')
+ attach_file('file', "./data/hamster_carcinogenicity.sdf")
+ click_on "Create model"
+ assert first("h2").has_content? "hamster_carcinogenicity"
+ time = 0
+ while first(".model_status").has_no_content?("Completed") do
+ sleep 5
+ time +=5
+ end
+ assert first(".model_status").has_content?("Completed")
+ end
=end