Feature: Coupler

In order to do research based on linked data
I want to have an easy step-by-step process
to link databases together

Scenario: creating a project

  1. When I go to the front page
  2. And I click the "create a project" link
  3. And I fill in the form
  4. And I click the "Submit" button
  5. Then it should show me a confirmation page
  6. And ask me to add a resource

Scenario: adding a resource

  1. Given that I have created a project called "My Project"
  2. When I go to the project page
  3. And I click the "Add resource" link
  4. And I fill in the form
  5. And I click the "Submit" button
  6. Then it should show me a confirmation page
  7. And ask me to add transformations

Scenario: adding transformations

  1. Given that I have created a project called "My Project"
  2. And that I have added a resource called "People"
  3. When I go to the resource page
  4. And I click the "Add transformation" link
  5. And I select "first_name" for "Field"
  6. And I select "downcaser" for "Transformer"
  7. And I click the "Submit" button
  8. Then it should take me back to the resource page

Scenario: transforming a resource

  1. Given that I have created a project called "My Project"
  2. And that I have added a resource called "People"
  3. And that I have added a "downcaser" transformation for "first_name"
  4. When I go to the resource page
  5. And I click the "Transform Now" button
  6. And I click the "Yes" button
  7. Then it should start transforming

Scenario: creating a scenario

  1. Given that I have created a project called "My Project"
  2. And that I have added a resource called "People"
  3. When I go to the project page
  4. And I click the "Create scenario" link
    Unable to locate Link, using :text and "Create scenario" (Celerity::Exception::UnknownObjectException)
    ./features/step_definitions/coupler_steps.rb:32:in `/^I click the "(.+?)" link$/'
    features/coupler.feature:46:in `And I click the "Create scenario" link'
  5. And I fill in the form
    NameLink by Last name
    TypeSelf-join
    ResourcePeople
    Range50-100
    Combining MethodSum
  6. And I click the "Submit" button
  7. Then it should show me a confirmation page
  8. And ask me to add matchers

Scenario: adding a matcher

  1. Given that I have created a project called "My Project"
  2. And that I have added a resource called "People"
  3. And that I have created a scenario called "Link by Last name"
  4. When I go to the scenario page
  5. And I click the "Add matcher" link
  6. And I fill in the form
    Fieldlast_name
    TypeExact
  7. And I click the "Submit" button
  8. Then it should take me back to the scenario page

Scenario: running a scenario

  1. Given that I have created a project called "My Project"
  2. And that I have added a resource called "People"
  3. And that I have created a scenario called "Link by Last name"
  4. And that I have added an "Exact" matcher for "last_name"
  5. When I go to the scenario page
  6. And I click the "Run" button
  7. And I click the "Yes" button
  8. Then it should start the linkage process
7 scenarios (1 failed, 3 undefined, 3 passed)
52 steps (1 failed, 12 skipped, 5 undefined, 34 passed)
0m14.436s