After a very inspiring training about TDD and BDD, I try to implement the methodology, using MSTest
and Specflow
. But I have a question where I'm stuck to:
I've written Acceptance Tests to validate a subsystem that we are working on. Our system is a little distributed:
- there is a 3rd party computer
- with its own application running freely
- with a third party database that we are accessing through tcp/ip
However my Specflow Scenario seems too much specialized for my own development set-up: it contains inputs that are valid only for me. In the example below, the ip adress is accessible mostly from me. And the target directory is namely a directory on my machine.
The accredited Tester/Validator, or the Product owner are likely not be able to launch the same test scenario, since they won't have access to this machine. But my developper colleages may not either.
@lastOne
Scenario: Get lattest 3rdParty OCR Data into specified directory
Given I indicate 'database' as the databaseName of third party computer
And I indicate '12.126.42.21' as the ipAddress of the third party computer
And I indicate 'user' as the databaseUser in third party computer
And I indicate 'c:\Temp\test_ocr\' as the destination path where to put the ocr data
And I indicate '2013020800009E' as the truck identifier to be associated with ocr data
When I call the OCR Application program
Then the destination path should contain correctly named xml file, with validated xml data, and jpg files about ocr data.
I am afraid I have some misconceptions about BDD. I am too specific in my scenario ? If yes, where should I stop ?