@bespoken-sdk/test-integration v1.0.3
Test Integration
This tool tends to be a test runner with integrations with different providers and Bespoken dashboard features.
Supported Integrations
TestRail
Required values
required keys
| Variable name | Description |
|---|---|
| TESTRAIL_USERNAME | The user name |
| TESTRAIL_KEY | The password or Api Key |
| TESTRAIL_HOST | The Test Rail Host |
| TESTRAIL_PROJECT | The project name |
| BESPOKEN_VIRTUAL_DEVICE_TOKEN | Bespoken virtual device token |
| BESPOKEN_API_KEY | Bespoken API KEY |
Sample:
TESTRAIL_USERNAME=''
TESTRAIL_KEY='xxx'
TESTRAIL_HOST='https://voxai.testrail.com'
TESTRAIL_PROJECT='Voxai Test'
BESPOKEN_VIRTUAL_DEVICE_TOKEN='phone-...'
BESPOKEN_API_KEY='api-...'How to run:\
npm run process:testrail
Test structure supported
Suported keyword from step text
| Token | Description |
|---|---|
| Listen | It will listen for its following text, if there are multiple listen token in a row, those will be concatenated to produce a single test in Bespoken |
| Say | It will Vocalize its following text |
| Press | It will press the numbers |
The expected property will be used as expected too in Bespoken.
Sample: | Step | Expected | | -------------- | ---------------- | | 1. Start call IN1000 | Thank you for calling the Clipper customer service center | | 2. Listen to IN6000 | To go back to Main Menu, say main or press 1 To access a different clipper card account, say switch or press 2 For any additional questions, say agent or press 0 If you are done here, just hang-up | | 3. Say What’s my clipper card balance? | Please enter your document number | | 4. Press 3 or say "No" | Thank you for calling clipper card |
The above steps will be converted into:
In Bespoken dashboard
Variables in test
If at any time a variable is required, it shoud be defined in the preconditions as variable:value, if more variables are required it should be enter in a new line. sample:
<phone>:11112
<another_variable>:its valueIs mandatory to have the phone variable defined always, it's value is the IVR Phone Number, sample <phone>:999123999
Add a trigger button in Testrail
It is possible to add a custom button to Testrail using scripts UI, more information can be found here
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago