Reputation: 9929
I have different requirement from a customer to write a automated test script for IVR Testing from .Net
I want to write this automated test scripts from C# that is in .NET Framework 4.0
I have few questions in implementing.
Other than this I have a confidence like I can achieve application call flow in easier way.
If you have any suggesions that is appreciated.
Upvotes: 3
Views: 2671
Reputation: 17540
There are a couple of approaches for this type of testing dependent upon what you are trying to achieve with your testing. I am assuming VoiceXML is used since I see that tag listed.
With VoiceXML you can write an application in C# that makes HTTP requests to your VoiceXML application just like the IVR would and get back the VoiceXML document to parse. You can check the VXML document for correctness and what you expected given the HTTP request. You can parse the document to see what other URL's the application branches to and then make those requests also. Using this technique you can pretty much go down all of the call flow paths.
Another approach is to have another IVR call the application being tested. You can use CCXML for making the outbound call to the application and you would have VoiceXML take over once it answered. You program the VoiceXML to "listen" for the expected results and then you use recorded audio for either the DTMF or speech input for the VXML application. Voxeo has a free developer version of an IVR called Prophecy that supports CCXML/VoiceXML and could be used as this test driver. The free version comes with 2 ports. I am assuming we are talking about functional regression testing and not load testing. Load testing can be done with the same approach but requires many more ports.
Upvotes: 2
Reputation: 22867
Why do you need to transform the message into an object? You could just treat the IVR as a black box.
Given you know the routes through the system can the test not just provide inputs and assert desired effect has happened in the domain?
I think this post will help with the dial up part Call a computer with another computer (Dial up Modem)
Upvotes: 0