We are rewriting and improving our software using CakePHP v.2.0RC3
We want to have a strong test framework that is going to be used from
now on and I am trying to make the best choice. I would like
eventually to integrate all the tests with Jenkins, including the
already developed PHP unit tests with PHPUnit .
One of our test engineer suggested we use TestNG+Eclipse and develop
test in Java.
I would have prefer to use PHP but Java may be Ok.
I wonder if it would be easy to use Netbean (that we commonly use for
development) instead of Eclipse with TestNG. Can we?
I briefly look into TestNG. At
http://testng.org/doc/selenium.html,
iit says: "If you really want to think about the future of your test
suite, I would recommend you to read Adam Goucher’s article published
on PragPub. He talks about Selenium 2 and the Page Objects Model (a
very nice way to model your tests, especially if you use Selenium 2).
Since there are lots of people still using Selenium 1, I'll stick to
that for a while, but Selenium 2 will eventually be covered here."
It looks like Selenium 2.0 is not supported. I am not an expert but I
think that some of the features of Selenium 2.0 are good (Ex:
webdriver). I am not sure how mature Selenium 2.0 is and if using it,
we lose any features offered by Selenium 1. Do you know that? Is not a
better thing for us to use Selenium 2 instead?
If we decide to go with Selenium 1.0, should not be using PHPUnit
Selenium extension instead of TestNG, so we do not have to deal with
another language (Java):
http://www.phpunit.de/manual/3.6/en/selenium.html
. What are the advantages of using TestNG over PHPUnit?
Any suggestions?
Best,
Chris