Update test runner spec (#139)
This commit is contained in:
Родитель
3096edef1a
Коммит
23e8066959
|
@ -28,12 +28,14 @@ Transcript based functional tests aim to allow us to test complex conversation f
|
|||
|
||||
Here is a high level class diagram to get started
|
||||
|
||||
![Class Diagram](media/TestRunnerClassDiagram.png)
|
||||
![Class Diagram](media/TestRunnerClassDiagram2.png)
|
||||
|
||||
- `TestRunner`: responsible for executing the `TestScript` using the desired `TestClientBase`
|
||||
- `TestScript`: responsible for reading a transcript, converting it into a sequence of steps and returning the steps to be executed.
|
||||
- `TestClientBase`: base class for implementing channel specific test clients
|
||||
- `TranscriptConverter`: responsible for reading a transcript, converting it into a sequence of steps and returning the steps to be executed. Input: an emulator transcript file. Output: a "Test Script" file.
|
||||
- `TestClientFactory`: creates an instance of a TestClient implementation.
|
||||
- `TestClientBase`(abstract): base class for implementing channel specific test clients
|
||||
- `_XYZ_Client`: specialized client that knows how to interact with a specific channel (it should be capable of generating channel OAuthTokens, handle responses coming from that specific channel, etc.)
|
||||
- `ClientType` (enum): types are: DirectLine, Emulator, Teams
|
||||
|
||||
## Implementation notes
|
||||
|
||||
|
@ -49,3 +51,9 @@ Here is a high level class diagram to get started
|
|||
- Do we create a tool to convert a transcript into a test script that removes some of the noise in the transcript and makes test easier to read and write?
|
||||
- Do we implement _XYZ_Options classes to configure the runner, the test script and the test client?
|
||||
- Possible feature - chaining test scripts, consider we have a welcome part that we do over and over again and want to combine with the book a flight or get weather. The welcome portion and assertions can be written once and then we can append the other scenarios.
|
||||
|
||||
## Test Script file
|
||||
|
||||
It is generated by the TranscriptConverter from an Emulator transcript. The test script file contains the list of Activities found in its corresponding Emulator transcript with the following properties removed:
|
||||
* All IDs
|
||||
* All timestamps
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 35 KiB |
Загрузка…
Ссылка в новой задаче