python实现get和post单接口测试
import pytest
import requests
class TestDemo:
def test_exam_get(self):
# /countdown/get-time
url = 'https://host.net/app/countdown/get-time?examType=9&needSign=1&noncestr=18799882&sign=sign×tamp=1646641161'
param = {
}
headers = {
'app-username': 'username',
'user-agent': 'Dart/2.14 (dart:io)',
'app-mc': 'app-mc',
'accept-encoding': 'gzip',
'app-ac': '0275b524-bf3f-98d5-83ed-51f14dc0c42b',
'app-os-version'