Created
January 26, 2014 21:29
-
-
Save maksar/8639711 to your computer and use it in GitHub Desktop.
feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment