Thursday 25 August 2016

TestNG for Automation testing

Why TestNG ?
How does it help for automation testing
JUnit v/s TestNG

To be continued...

What is TestNG ?



TestNG is a Unit testing framework for Java. Its open source. NG statnds for Next Generation. It has very rich features for automation testing . For ex : Groups, test dependency etc. It is inspired by Junit/NUnit but does not extend it.


Created by Dr. Cédric Beust (of Google).

Next

ALM Integration with Selenium

There are 2 ways to achieve the ALM Integration with any of the automation frameworks.

1. OTA
2. REST APIs

OTA

Pros for :
1. stable
2. all the ALM functionalities have been exposed through OTA

Cons :
1. Runs only on windows server.
2. needs alm sever on same machine

REST APIs

Pros :
1. Platform Independent.
2. No need of ALM server to be on the same machine or server from where you are making the rest calls.

Cons :

1. REST APIs may go under changes.
2.Not all functionalities have been yet exposed through REST calls.

To be continued.....

Parallel Testing with JUnit 4

With increasing demand for parallel testing (saves executions time tremendously) , here is an article from #saucelabs for which explains how it can be achived with Junit 4 and Selenium

http://sauceio.com/index.php/2010/10/parallel-junit-4-and-selenium-part-three-parallelism-and-ondemand/