test_departmentMember.py
626 Bytes
from atdd.PcPost import PcPost
from tests.Staff_Management.Organization.public_org import PulbicOrg
# 点击组织,跳转至人员列表页面,即查询该组织下的人员情况
class DepartmentMember(PcPost):
interfaceUrl = "/contact/Apicp/User/DepartmentMember"
def setUp(self):
self.do_login(self.host, self.mobile, self.psw, self.domain)
def test_departmentMember(self):
# 随机取一个部门ID
dptId = PulbicOrg().get_random_dptId()
data = {
"department_id[0]": dptId
}
result = self.PcPost(self.interfaceUrl,data)
print(result)