Skip to content

Commit

Permalink
Add delayed message pool (#92)
Browse files Browse the repository at this point in the history
Detects whether a test failed due to an out of order message and reruns
the test with an increased delay between messages - allowing for more
time to re-order messages.
  • Loading branch information
SketchingDev authored Sep 8, 2023
1 parent 468b7cc commit c6f3c92
Show file tree
Hide file tree
Showing 37 changed files with 2,169 additions and 254 deletions.
2 changes: 2 additions & 0 deletions docs/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ Genesys Web Messaging Tester

- [BotDisconnectedWaitingForResponseError](classes/BotDisconnectedWaitingForResponseError.md)
- [Conversation](classes/Conversation.md)
- [ReorderedMessageDelayer](classes/ReorderedMessageDelayer.md)
- [SessionTranscriber](classes/SessionTranscriber.md)
- [TimeoutWaitingForResponseError](classes/TimeoutWaitingForResponseError.md)
- [WebMessengerGuestSession](classes/WebMessengerGuestSession.md)

### Interfaces

- [MessageDelayer](interfaces/MessageDelayer.md)
- [SessionConfig](interfaces/SessionConfig.md)
- [SessionResponse](interfaces/SessionResponse.md)
- [StructuredMessage](interfaces/StructuredMessage.md)
Expand Down
14 changes: 7 additions & 7 deletions docs/api/classes/Conversation.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ console.log(reply);

#### Defined in

[packages/genesys-web-messaging-tester/src/Conversation.ts:126](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L126)
[packages/genesys-web-messaging-tester/src/Conversation.ts:133](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L133)

## Methods

Expand All @@ -78,7 +78,7 @@ Sends text to the conversation

#### Defined in

[packages/genesys-web-messaging-tester/src/Conversation.ts:166](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L166)
[packages/genesys-web-messaging-tester/src/Conversation.ts:175](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L175)

___

Expand All @@ -97,7 +97,7 @@ background. This method allows you to wait for this process to finish.

#### Defined in

[packages/genesys-web-messaging-tester/src/Conversation.ts:145](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L145)
[packages/genesys-web-messaging-tester/src/Conversation.ts:154](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L154)

___

Expand All @@ -115,7 +115,7 @@ If you want to wait for a specific message use [waitForResponseWithTextContainin

#### Defined in

[packages/genesys-web-messaging-tester/src/Conversation.ts:188](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L188)
[packages/genesys-web-messaging-tester/src/Conversation.ts:197](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L197)

___

Expand Down Expand Up @@ -147,7 +147,7 @@ use [waitForResponseText](Conversation.md#waitforresponsetext).

#### Defined in

[packages/genesys-web-messaging-tester/src/Conversation.ts:246](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L246)
[packages/genesys-web-messaging-tester/src/Conversation.ts:255](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L255)

___

Expand Down Expand Up @@ -176,7 +176,7 @@ use [waitForResponseText](Conversation.md#waitforresponsetext).

#### Defined in

[packages/genesys-web-messaging-tester/src/Conversation.ts:277](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L277)
[packages/genesys-web-messaging-tester/src/Conversation.ts:286](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L286)

___

Expand All @@ -198,4 +198,4 @@ Wait for all responses until there is a predefined amount of 'silence'.

#### Defined in

[packages/genesys-web-messaging-tester/src/Conversation.ts:204](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L204)
[packages/genesys-web-messaging-tester/src/Conversation.ts:213](https://github.com/ovotech/genesys-web-messaging-tester/blob/main/packages/genesys-web-messaging-tester/src/Conversation.ts#L213)
Loading

0 comments on commit c6f3c92

Please sign in to comment.