Problems getting the data

Hello!

I am trying to convert a robot from a robocorp to a robot framework, at the moment everything is fine, but I have problems getting the data.

Error:

my robot

*** Settings ***

Library Selenium2Library

Library RequestsLibrary

Library Requests

Library Collections

Suite Setup Create Session ofi ${BASE_URL} verify=True

Library HttpLibrary.HTTP

#Library Json

seteo la variables globales

*** Variables ***

${BASE_URL_TEMIS}= https://dwtemisapp1.appdom.app.telecom.com.ar:444/Login.aspx?ReturnUrl=%2F

${BASE_URL}= http://10.75.145.81

${GET_OFICIOS}= api/oficio/index?filter[id_status]=1&no_page=true

${Descargar_Archivos}= api/files/download

${GET_TOKEN}= api/temis/token

${POST_TEMIS_UPDATE}= api/temis/update

*** Keywords ***

Setup

Create Session    ofi    ${BASE_URL}    verify=True

-

*** Keywords ***

Main

${launch}=    Get Request Test

${launchs}=    Set Variable    ${launch.json()}

#Notebook Print    ${launchs['data']}

Abrir Temis

foreach data    ${launch}

hacemos la peticion ajax

*** Keywords ***

#Peticion ajax get oficios nuevos

${response}=    GET On Session    ofi    ${GET_ofiCIOS}    /

Request Should Be Successful    ${response}

Status Should Be    200    ${response}

[Return]    ${response}

*** keywords ***

Get Request Test

  ${response}=   GET On Session    ofi    ${GET_ofiCIOS}    /    expected_status=200

  #equest Should Be Successful    ${response}

  #Status Should Be    200    ${response}

  [Return]    ${response}

#*** Keyword ***

Setup

Create Session    ofi    ${BASE_URL}    verify=True

Abrir Temis

open browser        ${BASE_URL_TEMIS}    chrome

*** Test Cases ***

Abrir Temis

open browser        ${BASE_URL_TEMIS}    chrome

#setup

Setup

Create Session    ofi    ${BASE_URL}    verify=True

Get Request Test

  ${response}=   GET On Session    ofi    ${GET_ofiCIOS}    /    expected_status=200

  Request Should Be Successful    ${response}

  Status Should Be    200    ${response}

  [Return]    ${response}

Main

${launch}=    Get Request Test

${launchs}=    Set Variable    ${launch.json()}

foreach data

[Arguments] ${response}

#${pretty_json}=    To Json    ${response.text}    pretty_print=True

##${pretty_json}=    To Json    ${response.text}    #pretty_json=True

#${pretty_json}=    To Json    ${resp.json()}   ${response.text}    #pretty_print=True

${getResponseJson}=    Get Json Value    ${resp.json}    /RestResponse/result



${launch}=    Set Variable    ${resp.json()}

FOR    ${robot}    IN    @{launch['data']}

    Cargar Datos   ${robot}

Login

*** Keywords ***

Log In

Select from list by value  id:ddlPerfiles    C 

Input Text    id:txtLegajo    R000001

Input Password    id:txtPassword    P

Click Element   id:btnLogin

sleep      5

#Wait Until Page Contains Element    id:ctl00_btnNuevoOficio

Click Element    id:ctl00_btnNuevoOficio

I don’t know where the Get Json Value come from. I normally use https://robotframework-thailand.github.io/robotframework-jsonlibrary/JSONLibrary.html for Json path.