From 4a84e96d4e40d11ed58ae810e7bfb9624c1222e6 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 28 Jul 2011 17:34:01 +0000 Subject: sdf upload test added, toxcreate upload test not yet working (gui upload works) --- toxcreate.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'toxcreate.rb') 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 -- cgit v1.2.3