test_search_org.py
713 Bytes
# Author: jipeihong 2017年11月7日11:22:08
from atdd.PcPost import PcPost
# 搜索组织
class SearchOrg(PcPost):
interfaceUrl = "/contact/Apicp/Department/Search"
def setUp(self):
self.do_login(self.host, self.mobile, self.psw, self.domain)
# 搜索存在的组织
def test_search_org(self):
data = {
"keyword": '小仙女'
}
result = self.PcPost(self.interfaceUrl,data)
print(result)
return result
# 搜索不存在的组织
def test_search_org_abnormal(self):
data = {
"keyword": 12345
}
result = self.PcPost(self.interfaceUrl,data)
print(result)
return result