得到响应头机器人框架

时间:2016-05-30 11:36:45

标签: http http-headers robotframework

我正在尝试在机器人框架中获取名为com.coradiant.appvis的响应头 没有资源可以提供帮助,这是我的代码

*** Settings ***
Library            HttpLibrary.HTTP
Test Setup      Create HTTP Context     ${HOST}

*** Variables ***
${PORT}         80
${HOST}       http://vw-tlv-idnqa31${PORT}/EventsApps/EventsApps/WebForm.aspx
${APPVIS_HEADER}


*** Test Cases ***
Checking Appvis test
    Get the appvis response header

*** Keywords ***
Get the appvis response header
${APPVIS_HEADER} =        get response header   com.coradiant.appvis
Log     ${APPVIS_HEADER}

1 个答案:

答案 0 :(得分:2)

您必须先提出请求才能获得标头。假设您需要GET请求的标头,您可以使用GET关键字发出请求。

相关问题