RequestsLibrary库实战


RequestsLibrary库实战

实现驾照题库查询

参考网址:https://www.juhe.cn/

实例

*** Settings ***
Library    RequestsLibrary    

*** Test Cases ***
case01
    ${params}    Create Dictionary    subject=1    model=c1    key=8690be2812c2c9ad5e8f075db6c7c557
    Create Session    jz    http://v.juhe.cn    
    ${res}    Get Request    jz    /jztk/query    params=${params}
    Log    ${res.text}