${sql} Set Variable select url,sum(session_num) as hits \ from top_urls_log where __time >= '${startTime}' and __time < '${endTime}' \ group by url order by hits desc limit ${limit}
${remoteResponse} Get Request bdapi ?query=${sql}
${response} to json ${remoteResponse.content}
Should Be Equal As Strings ${remoteResponse.status_code} 200
Should Be Equal As Strings ${response['status']} 200
@{list} Set Variable ${response['data']}
Run Keyword If ${List1}!=[] and ${list}!=[] ForToUrlTopN-One ${List1} ${list}