Python自动化测试:
效果:
注意三点:
1. import unittest
2. 测试类要继承unittest.Testcase
3. main中调用 unittest.main()
最最最最要注意的是:测试类的是测试函数也以test开头..