# -*- coding: utf-8 -*-
"""
@Time : 2021/12/16 17:42
@Author : 阿涛@
"""
# -*- coding: utf-8 -*-
"""
@Time : 2021/12/16 14:11
@Author : zero
"""
import unittest
import requests
import my_rand
import random
# from api.cms import CMSApi
from api.cms_teacher import CMSApi
class Teacher_TestCMS(unittest.TestCase):
session = requests.Session()
cms_api = CMSApi("http://192.168.31.72:8080")
def test_001_login(self):
url = "/cms/manage/loginJump.do"
data = {
"userAccount": "admin",
"loginPwd": "123456"
}
resp = self.cms_api.post(url, data)
print(resp.text)
assert "登录成功" in resp.text
def test_002_query_user(self):
url = "/cms/manage/queryUserList.do"
data = {
"startCreateDate": "",
test_tea_TestCMS
于 2022-01-19 23:06:20 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)