Page 1 of 1

Can Ranorex Detect Alerts (sound being triggered)

Posted: Tue Aug 23, 2016 4:49 pm
by Naplespoet
Ok here is a new one for me....



I am using ranorex 6(latest version)

this isn't a bug but i tried to see if could find a way to do this as this is my first time dealing with this ....

I have an application that has a timer ... so in 30 mins make an alert go off ( bell sound or train sound whatever...) the concern is not really the audio that comes out , just that it attempted to ring , does that make sense?

in 30 mins this alert should happen and user should hear some sound, sound not important just that it attempted to play the sound.

its a webpage (works in IE/Chrome)

does anyone have maybe an idea or approach I can see that would help me achieve this. 8) 8)

Re: Can Ranorex Detect Alerts (sound being triggered)

Posted: Wed Aug 24, 2016 10:16 am
by RobinHood42
Hey Naplespoet,

There's definitely no way to somehow check if the sound is actually played.

The only way I can think of to check whether the sound is played is to find an "UI representative" of the action, e.g. a microphone icon is displayed or something similar. This visual interpretation can be validated using Ranorex.

Hope this makes sense. :D

Cheers,
Robin

Re: Can Ranorex Detect Alerts (sound being triggered)

Posted: Wed Aug 24, 2016 6:30 pm
by Naplespoet
That's a good idea. yeah the icon doesn't change at all i had thought the same thing if speaker changed to a speaker icon with volumes. Its not a critical test case they need but first time hearing this. OK ill continue on. thanks

Re: Can Ranorex Detect Alerts (sound being triggered)

Posted: Thu Aug 25, 2016 11:36 am
by Martin
http://stackoverflow.com/questions/6616 ... any-sounds

This should be quite helpful. The last answer seems to fit quite well and the 1st one offers a solution as well.