Created
November 29, 2013 04:47
-
-
Save lewisou/7701683 to your computer and use it in GitHub Desktop.
a try
This file contains hidden or 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: Create a new check | |
Create a new check with sample data. | |
Sample data is a subset of real data at a particular time point and should fullfill bellow constrants: | |
location: should include status inactive and active. | |
item: should include status inactive, active. | |
item group: should include type NP and not NP. (but this time, we don't find NP quantities in whole real data) | |
Inventory (frozen quantity): should be fall in all categories above. | |
Real data exported on 2013/11/28, (don't find NP quantities...) and we generate sample data in R. | |
We let DEMO-D.B. be remote, CA be onsite, and otheres are randomly assigned to either remote or onsite group. | |
Scenario: Normal situation with no open check. | |
Given No open check | |
And a user with role controller, username: controller, password: a123456 | |
When Visit Login page | |
And Login as username: controller, password: a123456 | |
And Visit Status page | |
And Click on Start A Stock Check button | |
And Fill in Inventory Name input field with Test check | |
And Fill in Locations xls file field with locations_sample.xls | |
And Fill in Item groups xls file field with groups_sample.xls | |
And Fill in Items xls file field with items_sample.xls | |
And Fill in Inventories xls file field with invs_sample.xls | |
And Click on Next button | |
And Randomly assign locations to remote or onsite | |
And Select location DEMO-D.B. as remote | |
And Select location CA as onsite | |
And Click on Finish button | |
Then Shoud have an open check named: Test check | |
And Should have 14 active locations | |
And Should have 10 inactive locations | |
And Should have 24 total locations | |
And Location CA should be active | |
And Location DEMO-D.B. should be inactive | |
And Should have 32 total item groups | |
And Should have 38 inactive items | |
And Should have 139 active items | |
And Should have 177 total items | |
And Should have 180 total quantities |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment