RF接口测试----get请求


 

代码:

*** Settings ***
Library    RequestsLibrary    


*** Test Cases ***    
聚合数据----手机号码归属地查询--get请求
    Create Session    telephonesearch    http://apis.juhe.cn   
    &{params}=  Create Dictionary    phone=18336008908   key=ed7965650d....9b971c9ec6fca   
    Log    ${params}    
    ${response}=  Get Request    telephonesearch    /mobile/get  params=${params}   
    Log    ${response.text}
    Log    ${response.status_code}   

  

 

运行结果:

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM