简体   繁体   English

是TestNG还是Spring Test框架?

[英]TestNG or Spring Test framework?

I have used TestNG+Rest Assured for rest api service testing(application is written based on Spring framework) and just want to know if it is better to use Spring test framework alone or integration TestNG+Spring test. 我已经使用TestNG + Rest Assured进行其余api服务测试(应用程序是基于Spring框架编写的),只是想知道单独使用Spring测试框架还是集成TestNG + Spring测试是否更好。

Thanks. 谢谢。

Use the combination of both. 结合使用两者。

TestNG will act as full featured test framework and Spring Test framework to mock spring beans (In other words, to get the out of the box spring support). TestNG将充当功能齐全的测试框架和Spring Test框架,以模拟Spring bean (换句话说,获得现成的Spring支持)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM