Skip to content

Instantly share code, notes, and snippets.

@maksar
Created January 26, 2014 21:29

Revisions

  1. maksar created this gist Jan 26, 2014.
    25 changes: 25 additions & 0 deletions sample.feature
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    Feature: Identification process
    Background:
    Given following EGRUL source configuration
    | step | suspicious_threshold | identification_threshold |
    | 1 | 0 | 90 |
    | 2 | 65 | 90 |
    And following attributes weights
    | inn | kpp | ogrn | okpo | short_name | full_name |
    | 90 | 10 | 90 | 85 | 5 | 5 |
    And following priorities
    | inn | kpp | ogrn | okpo | short_name | full_name |
    | 1 | 1 | 1 | 1 | 2 | 2 |
    Scenario: Identification of newly imported company
    Given such records in Payindex database
    | id | inn | kpp | okpo | ogrn | short_name | full_name |
    | 1 | 123 | | abc | | xyz | |
    | 2 | 123 | | ___ | | xyz | |
    | 3 | ___ | | abc | | __ | |
    | 4 | ___ | | ___ | | xyz | |
    When system tries to identify a company from "EGRUL" with following attributes
    | inn | kpp | okpo | ogrn | short_name | full_name |
    | 123 | | abc | | xyz | |
    Then company with id "1" should be matched
    And "3" should be reported as suspicious
    And "4" should be reported as suspicious