summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-01-22 10:59:39 +0100
committerChristoph Helma <helma@in-silico.de>2010-01-22 10:59:39 +0100
commitb3e6fbb640da54e5cb87b935e0e2516f11a186db (patch)
tree57fea9f274e5a884f9a69402199eaf15e410dd1f
parent68d5f59aced70107a7c31d9e802e08d638c69734 (diff)
fminer test for ambit added
-rw-r--r--features/fminer.feature5
-rw-r--r--features/fminer_ambit.feature13
-rw-r--r--features/step_definitions/common_steps.rb7
3 files changed, 22 insertions, 3 deletions
diff --git a/features/fminer.feature b/features/fminer.feature
index c1db022..67dfd39 100644
--- a/features/fminer.feature
+++ b/features/fminer.feature
@@ -10,6 +10,7 @@ Feature: Fminer
Examples:
|feature |data |
- |http://www.epa.gov/NCCT/dsstox/CentralFieldDef.html#ActivityOutcome_CPDBAS_Hamster|file: hamster_carcinogenicity.owl|
- #|http://dx.doi.org/10.1021/jm040835a|file: data/kazius.rdf|
+ |http://ambit.uni-plovdiv.bg:8080/ambit2/feature/12156 |file: hamster_carcinogenicity_ambit.owl|
+ # this is too big for sqlite
+ #|http://www.epa.gov/NCCT/dsstox/CentralFieldDef.html#ActivityOutcome_CPDBAS_Hamster|file: hamster_carcinogenicity.owl|
diff --git a/features/fminer_ambit.feature b/features/fminer_ambit.feature
new file mode 100644
index 0000000..a81c862
--- /dev/null
+++ b/features/fminer_ambit.feature
@@ -0,0 +1,13 @@
+@rest
+Feature: Fminer
+
+ Scenario Outline: Create fminer features
+ Given The dataset uri is <dataset_uri>
+ And I apply fminer for <feature>
+ When the task is completed
+ Then I should receive a valid URI
+
+ Examples:
+ |feature |dataset_uri |
+ |http://ambit.uni-plovdiv.bg:8080/ambit2/feature/12100|http://ambit.uni-plovdiv.bg:8080/ambit2/dataset/8|
+
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index baddac5..3615f48 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -14,6 +14,11 @@ When /^I post (.*) to the (.*) webservice$/ do |data,component|
@resources << @uri unless /compound|feature/ =~ component
end
+Given /^The dataset uri is (.*)$/ do |uri|
+ @uri = uri
+ # do not delete this !!
+end
+
When /^the task is completed$/ do
@task.wait_for_completion
@uri = @task.resource
@@ -22,7 +27,7 @@ When /^the task is completed$/ do
end
Then /^I should receive a valid URI$/ do
- #puts @uri
+ puts @uri
@response = RestClient.get @uri, :accept => '*/*'
#puts @response.to_yaml
end