硒的webdriver Java框架 - TestNG的JUnit的还是? [英] Selenium-Webdriver Java Framework - TestNG or JUnit?
问题描述
随着一个基本的疑问,我有<一个href=\"http://stackoverflow.com/questions/12140344/write-testcases-using-pagefactory-selenium-webdriver-advantages\">here(which遗憾的是没有得到太多的关注)我有在preparing一个Java框架硒的webdriver上下文中的另一个基本疑虑。
我不满意这里答案,需要从现实情况下的最佳实践一些优质的咨询服务场景。 (指望SO)
Along with a basic doubt I had here(which unfortunately did not get much attention) I have another basic doubt in context with preparing a Java Framework for Selenium-WebDriver. I am not satisfied with the answers here and need some quality advice on best practices from real world case scenarios. (Counting on SO)
主要的问题是 - 哪一个更适合硒? TestNG的JUnit的还是?为什么?
The main question is - Which one is better suited for Selenium? TestNG or JUnit? And Why?
我得到了一些基本的差异这里,<一个href=\"http://stackoverflow.com/questions/3767129/i-am-new-to-automated-testing-in-java-which-tool-should-i-$p$pfer-junit-or-test\">here(for自动化但不清楚的答案-all问挑一)等等。寻找一些更多的细节,这将帮助我更好的决定。
I got some basic differences here,here(for Automation but unclear answers -all ask to pick one) and many more. Looking for some more details which will help me decide better.
P.S:我有硒+ JUnit的经验。如果我走一样的路我会后悔?
P.S: I have experience with Selenium+JUnit. Will I regret if I go the same way?
推荐答案
简单使用JUnit与调节与TestNG的 - 这一切
simplicity with JUnit vs. adjustability with TestNG - that's all
首先,这两个工作得非常好。
Firstly, both work quite well.
如果你想缩小你的执行时间,并有足够的时间去找出最佳的配置,我会建议TestNG的。在并行的情况下,这是你的工具。
If you want to scale down your execution time and have enough time to find out the best possible configuration I would recommend TestNG. In case of parallelization that's your tool
如果您preFER自上而下执行的JUnit的朴素是你在找什么。
If you prefer the plainness of a top down execution JUnit is what you're looking for
- 编辑 -
关于JUnit的3
这篇关于硒的webdriver Java框架 - TestNG的JUnit的还是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!