*** Settings ***
Resource          flow_zmx.resource
Resource          res_zmx.resource

*** Variables ***
${path}           /api/v1/ability/page
#${path}          /api/ability/page 此接口已废弃

*** Test Cases ***
正例-获取分页
    [Tags]    F
    create session    URI    ${URL}
    ${content}    POST请求结果    ${path}    {"page_index":0,"page_size":10}    200    ${token}
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    200

反例-不传入token
    [Tags]    E
    create session    URI    ${URL}
    ${content}    POST请求结果    ${path}    {"page_index":0,"page_size":10}    401    {}
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    401
    Should Be Equal As Strings    ${content["code"]}    401

反例-传入错误参数
    [Tags]    E
    create session    URI    ${URL}
    ${content}    POST请求结果    ${path}    {"workerId":"a68ad587830d41aebf418a919006353e"}    200    ${token}
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    200

反例-传入空参数
    [Tags]    E
    create session    URI    ${URL}
    ${content}    POST请求结果    ${path}    {}    200    ${token}
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    200
