test_AuthorityList.py 837 Bytes


from atdd.PcPost import PcPost


class AuthorityList(PcPost):

    interfaceUrl = "/Assistant/Apicp/Integral/AuthorityList"

    def setUp(self):
        self.do_login(self.host, self.mobile, self.psw, self.domain)

    '''
        @parameter:
        page:非必填,int, 当前页数 默认: 1
        pageSize:非必填,int, 每页数量 默认: 15
    '''

    # 员工积分排名 权限范围列表查询:参数为空
    def test_AuthorityList_None(self):
        result = self.PcPost(self.interfaceUrl)
        print(result)
        return result

    # 员工积分排名 权限范围列表查询:有参数
    def test_AuthorityList(self):
        data = {
            "page": 1,
            "pageSize": 10
        }
        result = self.PcPost(self.interfaceUrl, data)
        print(result)
        return result