JUnit vs Node.js
I am going to implement automation and unit testing in my company.
Before that i need to decide what tools we are going to use.
Our product is Java based , working on Linux. Web GUI on windows.
We are planning to use Selenium for GUI (Java on Eclipse).
But according unit test i would like to ask your advise...
The problem is that to do proper testing for code itself i have to create a lot of mock ups, that makes all business not worth the effort.
The only way i can implement unit testing is web requests to specific JSONs of specific methods. And i need to execute it from Jenkins.
I created prove of concept for JUnit and Node.js. In both cases it is working great!
The JUnit implementation is sophisticated ,but, IMHO, once the framework is created it would be reliable and pretty robust.
Node.js from other hand - it is something new and not stable yet, but it is very easy for developing - i cerated few scripts already that running well from Jenkins with each deployment.
So, could you share with me you thoughts about it, disadvantaged of both products etc ?
Thanks in advance!
They both have pros and cons. Most people think Selenium is better because you are testing against a real browser with a close to real interaction. On the other hand node.js will give you ability to do all kinds of things that's not possible because you have access to js but that in itself will make your test further from what the user experience. There's no good answer but to weigh the pros and cons of both and decide for yourself what you think is the best.
Originally Posted by PavelKantor
I will recommend to use TestNG instead of Junit and Node.js. TestNG is more successfull in web automation and many organistations are accepting this.
To know more about TestNG, kindly visit these links:
You will get the good support for testNG as well.
We recommend this email id to be used for any communication with the QASourceTeam.