Sunday, 11 September 2016

How to Install TestNG ?

In eclipse :

1.       Launch the Eclipse IDE and from Help menu, click “Install New Software”.
2.       On the dialog window, click “Add” button.
3.       Type name as “TestNG” and type http://beust.com/eclipse/” as location. Click OK.
4.       You will now see TestNG option selected, if not selected select the check box and click on Next button.
5.       Click “I accept the terms of the license agreement Finish.
6.       Eclipse will prompt to restart . Click on OK.

Else 
  1. Go to Help -> Eclipse Market Place.
  2.  Search for testng.
  3.  Select testNG option and click on install.
  4. Click “I accept the terms of the license agreement Finish.
  5.  Eclipse will prompt to restart . Click on OK.


Maven dependency :
<dependency>

  <groupId>org.testng</groupId>

  <artifactId>testng</artifactId>

  <version>6.8</version>

  <scope>test</scope>


</dependency>

Next

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/


Tuesday, 3 May 2016

Top 50 linux interview Questions and answers

https://www.linkedin.com/pulse/top-50-linux-interview-questions-abhinav-kumar?trk=hb_ntf_MEGAPHONE_ARTICLE_POST