Cucumber Features

Feature: managing matchers

Scenario: creating a matcher

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

Scenario: creating a matcher for a dual-join scenario

  1. Given that I have created a project called "My Project"
  2. And that I have added the "People" resource
  3. And that I have added the "Pets" resource
  4. And that I have created a dual-join scenario called "Link by name"
  5. When I go to the scenario page
    Source
  6. And I click the "Add matcher" link
  7. And I fill in the form:
    Comparator
    exact
    Field for People
    last_name
    Field for Pets
    owner_last_name
  8. And I click the "Submit" button
    Source
  9. Then it should take me back to the scenario page

Feature: managing projects

Scenario: creating a project

  1. When I go to the front page
    Source
  2. And I click the "create a project" link
  3. And I fill in the form:
    Name
    My Project
    Description
    This is a test project
  4. And I click the "Submit" button
    Source
  5. Then it should show me a confirmation page
  6. And ask me to add a resource

Feature: managing resources

Scenario: adding a resource

  1. Given that I have created a project called "My Project"
  2. When I go to the project page
    Source
  3. And I click the "Add resource" link
  4. And I fill in the form:
    Name
    People
    Host
    localhost
    Port
    12345
    Username
    coupler
    Password
    cupla
    Database
    fake_data
    Table
    people
  5. And I click the "Submit" button
    Source
  6. Then it should show me a confirmation page
  7. And ask me to add transformations

Scenario: transforming a resource

  1. Given that I have created a project called "My Project"
  2. And that I have added the "People" resource
  3. And that I have added a "downcaser" transformation for "first_name"
  4. When I go to the resource page
    Source
  5. And I click the "Transform Now" button
    Source
  6. And I click the "Yes" button
    Source
  7. Then it should start transforming
    Then /^it should start transforming$/ do
      pending # express the regexp above with the code you wish you had
    end

Feature: managing scenarios

Scenario: creating a scenario

  1. Given that I have created a project called "My Project"
  2. And that I have added the "People" resource
  3. When I go to the project page
    Source
  4. And I click the "Create scenario" link
  5. And I fill in the form:
    Name
    Link by Last name
    Type
    Self-join
    Resource(s)
    People
  6. And I click the "Submit" button
    Source
  7. Then it should show me a confirmation page
  8. And ask me to add matchers

Scenario: creating a dual-join scenario

  1. Given that I have created a project called "My Project"
  2. And that I have added the "People" resource
  3. And that I have added the "Pets" resource
  4. When I go to the project page
    Source
  5. And I click the "Create scenario" link
  6. And I fill in the form:
    Name
    Link by name
    Type
    Dual-join
    Resource(s)
    People/Pets
  7. And I click the "Submit" button
    Source
  8. Then it should show me a confirmation page
  9. And ask me to add matchers

Scenario: running a self-join scenario

  1. Given that I have created a project called "My Project"
  2. And that I have added the "People" resource
  3. And that I have created a scenario called "Link by Last name"
  4. And that I have added a "exact" matcher with these options:
    People
    field_name
    last_name
  5. When I go to the scenario page
    Source
  6. And I click the "Run Now" button
    Source
  7. And I click the "Yes" button
    Source
  8. Then it should start the linkage process
    Then /^it should start the linkage process$/ do
      pending # express the regexp above with the code you wish you had
    end

Feature: managing transformations

Scenario: adding transformations

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

Scenario: deleting a transformation

  1. Given that I have created a project called "My Project"
  2. And that I have added the "People" resource
  3. And that I have added a "downcaser" transformation for "first_name"
  4. When I go to the resource page
    Source
  5. And I click the "Delete" link
  6. Then there should be no more transformations