BI-928 Refactor PNA BDD test code with JSON data
Created by: ay701
This PR refactor BDD testing code for PNA app
Test data will stay in feature file, inside scenario outline
Fixture and tag are used to apply the data injection
To test:
- Switch to
BI-928branch, then:git pull - Go to
/bloclink/apps/pnafolder - Install
behavelocally (If you haven't):pip install behave - Make sure
bloclinkservice is running locally - Run the test:
python -m behave
You are expected to see test results like following screenshot, based on test definition in *.feature files. Please feel free to review, & see if the result makes sense.
Issue related: https://blocpower.atlassian.net/browse/BI-770
Issue fixed: https://blocpower.atlassian.net/browse/BI-928
