Can Ranorex Detect Alerts (sound being triggered)

Best practices, code snippets for common functionality, examples, and guidelines.
User avatar
Naplespoet
Certified Professional
Certified Professional
Posts: 9
Joined: Fri May 20, 2016 6:12 am

Can Ranorex Detect Alerts (sound being triggered)

Post by Naplespoet » Tue Aug 23, 2016 4:49 pm

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)

User avatar
RobinHood42
Posts: 238
Joined: Fri Jan 09, 2015 3:24 pm

Re: Can Ranorex Detect Alerts (sound being triggered)

Post by RobinHood42 » Wed Aug 24, 2016 10:16 am

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

User avatar
Naplespoet
Certified Professional
Certified Professional
Posts: 9
Joined: Fri May 20, 2016 6:12 am

Re: Can Ranorex Detect Alerts (sound being triggered)

Post by Naplespoet » Wed Aug 24, 2016 6:30 pm

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

Martin
Posts: 152
Joined: Fri Aug 15, 2014 12:24 pm

Re: Can Ranorex Detect Alerts (sound being triggered)

Post by Martin » Thu Aug 25, 2016 11:36 am

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.