基于Jenkins接口测试
# coding = utf-8 import httplib http_client = None http_client = httplib.HTTPConnection(‘localhost‘ , 8080 , timeout=30) http_client.request(‘GET‘ , ‘/jenkins/api/json‘) response = http_client.getresponse() print response.status #返回状态码 print response.read() #读出返回信息
本文出自 “on_the_road” 博客,请务必保留此出处http://cqtesting.blog.51cto.com/8685091/1760364
原文地址:http://cqtesting.blog.51cto.com/8685091/1760364