发布时间:2019-08-20 07:47:09编辑:auto阅读(2167)
基于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() #读出返回信息
上一篇: Python中SQL——LIKE中的%
下一篇: python - 函数
53778
40601
35040
30759
25624
25396
23827
19310
15421
14923
1510°
1392°
1492°
1525°
1538°
1720°
1679°
1551°
1649°
1597°