def test_01(self, syxp: Shiyexiangpi): '''名字太短是否正常''' syxp.open("/shiyexiangpi/index?channel=online_paytest") syxp.short_name() acturl_tips = syxp.get_tips() expect_tips = "姓名最少2个字" assert acturl_tips == expect_tips
def test_03(self, syxp: Shiyexiangpi): '''英文姓名太短是否正常''' syxp.open("/shiyexiangpi/index?channel=online_paytest") syxp.short_english_name() acturl_tips = syxp.get_tips() expect_tips = "英文姓名最少3个字母" assert acturl_tips == expect_tips
def test_04(self, syxp: Shiyexiangpi): '''英文姓名太长是否正常''' syxp.open("/shiyexiangpi/index?channel=online_paytest") syxp.long_english_name() acturl_tips = syxp.get_tips() expect_tips = "英文姓名不超过10个字母" assert acturl_tips == expect_tips
def test_02(self, syxp: Shiyexiangpi): '''名字太长是否会正常''' syxp.open("/shiyexiangpi/index?channel=online_paytest") syxp.long_name() acturl_tips = syxp.get_tips() expect_tips = "姓名不超过5个字" assert acturl_tips == expect_tips