TDD と BDD について非常に刺激的なトレーニングを受けた後、 と を使用して方法論を実装しようとしていMSTest
ますSpecflow
。しかし、私がこだわっている質問があります:
取り組んでいるサブシステムを検証するための受け入れテストを作成しました。私たちのシステムは少し分散しています:
- サードパーティのコンピュータがあります
- 独自のアプリケーションを自由に実行
- tcp/ip を介してアクセスしているサードパーティのデータベースを使用する
しかし、私の Specflow シナリオは、私自身の開発セットアップには特化しすぎているようです。これには、私だけに有効な入力が含まれています。以下の例では、IP アドレスは主に私からアクセスできます。ターゲットディレクトリは、つまり私のマシン上のディレクトリです。
認定されたテスター/検証者、または製品所有者は、このマシンにアクセスできないため、同じテスト シナリオを開始できない可能性があります。しかし、私の開発者の同僚もそうではないかもしれません。
@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.
私は BDD についていくつかの誤解を持っていることを恐れています。シナリオが具体的すぎますか? はいの場合、どこで停止すればよいですか?