Git Product home page Git Product logo

ivr-tester's People

Contributors

dependabot[bot] avatar fossabot avatar sketchingdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ivr-tester's Issues

Instance of IvrTester can only run a single suite of scenarios

Hi,

Thanks for your library. It is very helpful for us. Having one clarification regarding the below code. Here, you've mentioned that 'Instance of IvrTester can only run a single suite of scenarios'.

  • Can't we make a parallel requests using your library.
  • What will happen, if we remove that particular code and try that.

Kindly advice. thanks.

public async run(
testSubject: TestSubject,
scenario: Scenario[] | Scenario
): Promise {
if (this.running) {
throw new Error(
"Instance of IvrTester can only run a single suite of scenarios"
);
}
this.running = true;

DTMF support query

Do you support RFC 2833 DTMF inputs? DTMF via in-band signaling or out-of-band SIP INFO messages?
If not is there a way to add this?

A bit help with the usage guide

Hi @SketchingDev
I am trying to learn and use your repo with a Twilio's studio flow in flex. For some reason I am not able to connect my Twilio account with the script I am trying to build using ivr tester.
It's a very basic flow and I want to test If I can input some numbers when in IVR but my call never seems to connect and it just ends up being timeout.
Also in your usage guide there is a command which says node test.js where is that test.js
I assumed that maybe that test.js was a custom file, depends on the script.

So then I tried my own script which is as following:

const { googleSpeechToText } = require("ivr-tester-transcriber-google-speech-to-text");
const ivrTester = require("ivr-tester");
const config = { transcriber: googleSpeechToText({ languageCode: "en-US" }),twilioAuth: {accountSid: "ACXXXXXXXXXXXXXXXXX",authToken:"XXXXXXXXXXXXXXX"} };
new ivrTester.IvrTester(config).run(
    { from: "YYYYYYYYY", to: "XXXXXXXXXX" },
    {
      name: "Hello, Press a button",
      steps: [
        {
          whenPrompt: ivrTester.similarTo("Hello, Press a button"),   // this is what I have in my Twilio Flex's studio flow
          then: ivrTester.press("1"),
          silenceAfterPrompt: 3000,
          timeout: 6000,
        },
       ],
    }
  );

whenever I run this script as node script.js
it gives me following timeout error

Calling XXXXXXXXXX...
Timed out: call did not connect after 30s
The server has closed
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "undefined".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

so maybe I am not setting it up right or I am missing something, If you could guide or help me around it, that would be really great.

Rerun test against captured transcript

When developing a test I often find myself having to rerun the test for each transcript to make sure my condition is correct, before then having to fix it for the next transcription.

Being able to rerun my test against a copy of the transcript that caused it to fail would save time (and money).

Raw audio format

Is there a preferred audio player to listen to playback? The .raw format isn't recognized by any of my standard applications. Thanks!

Third-party plugins

I want users to be able to configure the speech-to-text service of their choice without the core functionality being ladened with them as dependencies. This can be achieved by implementing a plugin architecture.

I don't know how this is achieved in node, but could investigate how Artillery does it.

Interactive test creation

A CLI that prompts the user with how to respond to each transcription from the call, resulting in a test file pre-populated with the user's choices.

Execution stuck at DTMF

A step with press("1") doesn't seem to produce the audio tone and gets stuck, is there an extra step to create those?

Call does not hang-up in twilio

Hello, this tool is fantastic. I found that even though I set a hang-up in the scenario file or if the test fails, the call should be terminated. The transcription file and the recording audio looks fine BUT if I go to twilio and look for the call, I find that the call is still in progress until the responder hangs up.
This is a big issue because that call's cost will depend not on the scenario file but on when the responder hangs up.

How it should work:
If an error, failed or successful test has occurred. The call must be terminated (hang up) in twilio as well.

Looping scenario if an irv is silent

Hello,
I haven't found a solution if an IVR is down and silent, the call remains stuck on the scenario and runs in a loop.

Do you have a solution for this problem?

Upgrade Typedoc

When I upgraded the Typedoc dependency in the root package.json to 0.20.16 the yarn doc command started failing.

https://github.com/SketchingDev/ivr-tester/blob/5e485409d25f129edf5e88382c8094efb56ac927/package.json#L14

$ yarn doc
yarn run v1.22.5
$ lerna run doc
lerna notice cli v3.22.1
lerna info Executing command in 3 packages: "yarn run doc"
lerna ERR! yarn run doc exited 1 in 'ivr-tester'
lerna ERR! yarn run doc stdout:
$ yarn typedoc
$ /<project parent dir>/ivr-tester/node_modules/.bin/typedoc
Info: Loaded plugin typedoc-plugin-markdown
Error: Tried to set an option (inputFiles) that was not declared.
Error: Tried to set an option (excludeNotExported) that was not declared.
Error: Tried to set an option (stripInternal) that was not declared.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run doc stderr:
error Command failed with exit code 1.
error Command failed with exit code 1.

lerna ERR! yarn run doc exited 1 in 'ivr-tester'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Hard to follow the setup

Hi @SketchingDev

Could you please record tutorial or better documentation on how to get this working?

After downloading the repo, there's no mentioning of where to do npm install etc.
Where to create a sample test.js?

Easier tutorial please for dummies :)

Thanks!

Setup issue

its very difficult to follow setup as we are unable to know where to place or test config file and how to run it kindly share a sample tutorial or a clear instructions read.md file as on readme its written to run node test but no such file is created and if its a config script code share in readme that where to made it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.