Forum Discussion

opnchaudhary's avatar
opnchaudhary
Streaming Star
4 years ago

Channel Launch from automation script failed.

I am working on a SVOD channel. It is working fine when I sideload it and run it. But when I create a automation script to test the sign in, the channel does not load and is stuck in the splash screen. I have tried with single step only too: launch channel but still it gets stuck. Is there something I am doing wrong in this channel, because the another channel that does not have subscription(free channel) launches fine. 

5 Replies

  • RokuPam's avatar
    RokuPam
    Streaming Star

    Hi opnchaudhary,

    Can you specify what automation script you're using to test your SVOD channel? We recently launched our developer sign-in scripts, which should enable you to test the launch and playback of any authenticated channel. If you're using that feature and are seeing any bugs/issues, please send over any screenshots/errors you see on your end. 

    Thanks! 

    • opnchaudhary's avatar
      opnchaudhary
      Streaming Star

      The login script

      params:   
          rasp_version: 1
          default_keypress_wait: 5
          channels:   
              Roku Channel: dev
      steps:  
          - launch: Roku Channel
          - pause: 10
          - press: ok
          - text: script-login
          - pause: 10
          - press: down
          - press: down
          - press: down
          - press: down
          - press: ok
          - pause: 10
          - text: script-password
          - press: down
          - press: down
          - press: down
          - press: down
          - press: ok
          - pause: 10

      The logout script

      params:   
          rasp_version: 1
          default_keypress_wait: 2
          channels:   
              Roku Channel: dev
      steps:  
          - launch: Roku Channel
          - press: right
          - press: info
          - press: down
          - press: down
          - press: down
          - press: down
          - press: down
          - press: down
          - press: down
          - press: down
          - press: down
          - press: ok
          - press: ok

      When I run any of the script above (script-login and script-password replaced with original in sideloaded channel), the channel launches and gets stuck in the splash screen. No error in the console (8085 port). But when I manually launch the channel (without the script), the channel loads fine. 

      I have run this on two channels today:
      One of them reports 'Channel name Roku Channel does not match ID dev'. (name of channel replaced)
      And in the other channel I get the following error. 




      • opnchaudhary's avatar
        opnchaudhary
        Streaming Star

        I was able to fix the issue of the channel not launching. It was a problem in my code. It was caused by an if -clause that had: 

        args.mediaType <> invalid and args.contentId <> invalid

        which are not invalid when launched from the automation script. 

        I haven't yet figured out what the error in the screenshot means.