跑流程

from shareCommFuntion import htmlrepoterRepor = htmlreporter.htmlreporter()

class AddressAndLogin():

  def testAddressAndLogin(self):

    suit1=unittest.TestSuite()

    from testModel import ShopAddress1

    from testModel import ShopLogin1

    suit1.addTest(unittest.makeSuite(模块名(类名))

    suit1.addTest(unitest.makeSuite(模块名(类名))

    Repor.reporter("haha.html",u"shop增加地址",u“登录和增加收货地址”,suit1)

if __name__="__main__":

  unittest.main()

原文地址:https://www.cnblogs.com/wuzhenhu/p/5444240.html