TestNG 与 Junit 对比,测试框架如何选择?
TestNG 和 Junit 作为两大流行的测试框架,有哪些区别?各有哪些优缺点?该如何选择呢?这里简要总结下:



执行时通过运行 xml 文件
最基本的套件管理规则:suite->test->classes->class
同一个 test 下的测试类看做是一个整体,其中的注解对整个 test 整体都是生效的





methods: 所有用例都可以在不同的线程下执行,包括依赖的用例
tests: 同一个中的用例运行在同一个线程下,不同中的用例可以运行在不同线程下
classes:同一个中的用例运行在同一个线程下,不同中的用例可以运行在不同线程下
更多学习资料戳下方!!!
评论