SDRSharp + Net Remote plugin
Robot Framework telnet library

ride1.jpg
https://i.ibb.co/8jT3svC/ride1.jpg


ride2.jpg

*** Settings ***
Documentation     {"Command": "Set", "Method": "DetectorType", "Value": "AM"}
Suite Teardown    Close All Connections
Library           Telnet
Library           Collections

*** Variables ***
${addr}           127.0.0.1
${port}           3382
${con_str_ok}     {"Name":"Net Remote"
${detector_type}    "AM"
${set}            {"Command": "Set", "Method": "DetectorType", "Value":
${endmark}        }

*** Test Cases ***
RC1
    Open Connection    ${addr}    port=${port}
    ${str} =    Read
    Log To Console    ${str}
    Should Start With    ${str}    ${con_str_ok}
    ${json}=    catenate    {"Command": "Get", "Method": "IsPlaying"}
    Log To Console    ${json}
    Write    ${json}
    Read
    ${cmd}=    Set Variable    ${set}${SPACE}${detector_type}${endmark}
    Log To Console    ${cmd}
    Write    ${cmd}
    Read


RPA with RF

*** Settings ***
Suite Teardown    Close All Connections
Force Tags        rpa
Library           Telnet
Library           Collections
Library           Process

*** Variables ***
${addr}           127.0.0.1
${port}           3382
${con_str_ok}     {"Name":"Net Remote"
${detector_type}    "AM"
${set}            {"Command": "Set", "Method": "DetectorType", "Value":
${endmark}        }
${sdrpath}        c:/utils/sdr/sdrsharp.exe

*** Test Cases ***
RC1
    Open Connection    ${addr}    port=${port}
    ${str} =    Read
    Log To Console    ${str}
    Should Start With    ${str}    ${con_str_ok}
    ${json}=    catenate    {"Command": "Get", "Method": "IsPlaying"}
    Log To Console    ${json}
    Write    ${json}
    Read
    ${cmd}=    Set Variable    ${set}${SPACE}${detector_type}${endmark}
    Log To Console    ${cmd}
    Write    ${cmd}
    Read

RC2
    Start Process    ${sdrpath}

Force tags rpa for running from cmd with robot -i rpa --rpa ...
Process library used for launching SDR#. In Net Remote plugin network checkbox is default unchecked at startup. That needs to be fixed e.g. using AutoIt library for RF (set checked when SDR# is started). 

Close processes launched by using Start (or Run) Process
[Teardown]    Terminate All Processes    kill=True