Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  How I created automated tests that use WebRTC softphone

    Posted 11 days ago

    Hey,

    I just thought I'd share a blog article that I posted a couple of days ago about how I write automated tests for features I develop in the agent's UI. They're end to end tests that simulate a call between agent and customer and uses Puppeteer to assert the behaviour of my feature.

    Automated tests using Genesys Cloud's WebRTC softphone

    Makingchatbots remove preview
    Automated tests using Genesys Cloud's WebRTC softphone
    Manually testing a UI that relies on Genesys Cloud's Softphone and Notifications API can be a time-consuming and fragile process.
    View this on Makingchatbots >

    I would love to get feedback from this community as I am sure I am overcomplicating my solution to testing, particularly about how I stream audio into the softphone when simulating an agent. I'm achieving this by mocking the Browser's MediaDevices API, however have noticed the 'WebRTC Media Helper' toggle in the Phone Management area? May this be of some help?


    #API/Integrations
    #ArchitectureandDesign
    #ConversationalAI(Bots,AgentAssist,etc.)
    #DigitalChannels
    #Implementation

    ------------------------------
    Lucas Woodward
    OVO Energy Ltd

    https://www.linkedin.com/in/lucas-woodward-the-dev
    ------------------------------


  • 2.  RE: How I created automated tests that use WebRTC softphone

    GENESYS
    Posted 10 days ago

    Hey Lucas,

    This is a great write up. I really loved the attention to detail and the aesthetics on the graphics. I'm not sure that you would need the WebRTC Media Helper, unless you are planning to test this (or are testing this) within VDI. I've included a link to one of our Resource Center articles about that feature. 

    https://help.mypurecloud.com/articles/webrtc-media-helper-overview/



    ------------------------------
    Jason Kleitz
    Online Community Manager/Moderator
    ------------------------------



  • 3.  RE: How I created automated tests that use WebRTC softphone

    Posted 6 days ago

    Thank you. Truth be told, the diagrams sometimes take longer than the blog article to put together, but I like the idea that they might make the concepts easier to understand for somebody.

    That's useful to know thank you, I was barking up the wrong tree with the Media Helper.



    ------------------------------
    Lucas Woodward
    OVO Energy Ltd

    https://www.linkedin.com/in/lucas-woodward-the-dev
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources