X
26Sep

How to Install TestNG framework (Step by Step installation process)

Steps to Install Eclipse using install new Software:

Step 1:
In Eclipse, on top menu bar, Under Help Menu, Click on "Install new Software" in help window.

help

 

Step 2:
Enter the URL (http://beust.com/eclipse/) at Work with field and click on "Add" button.

beust

Step 3:
Once you click on "Add", it will display the screen, enter the Name as "TestNG".

beust link

Step 4:
After clicking on "OK", it will scan and display the software available with the URL which you have mentioned.

  • Now select the checkbox at TestNG and Click on "Next" button.

    Testng

Step 5:
It will check for the requirement and dependencies before starting the installation.

  • If there is any problem with the requirements/dependencies, it will ask you to install them first before continuing with TestNG. Most of the cases it will successfully get installed nothing to worry about it.

path

Step 6: 
Once the above step is done, it will ask you to review the installation details. If your are ready or Ok to install TestNG, click on "Next" to continue.

Step 7: 
Accept the Terms of the license agreement and Click on "Finish" button.

licenses

Finally once the installation is done, you can check the TestNG is installed properly or Not.

  • Go to Windows Menu bar, and Mouse Over on "Show View" and Click on "Other" at the last as in the below screen shot.
    window

Expand Java folder and see if the TestNg is available as in the below screen shot.

java

Download the Selenium Java Client Driver

You can download the Selenium Java Client Driver from this location: http://docs.seleniumhq.org/download

Configure Eclipse IDE with WebDriver

  1. Launch the "eclipse.exe" file inside the "eclipse" folder that we extracted, the executable should be located on C:\eclipse\eclipse.exe.
  2. When asked to select for a workspace, just accept the default location or choose the location by using browse option.

space

  1. Create a new project through File > New > Java Project. Name the project as "Seleniumtest".
  2. Right-click on the newly created project and select New > Package, and name that package as "Newpack".
  3. Create a new Java class under “Newpack” by right-clicking on it and then selecting New > Class, and then name it as "Example". Your Eclipse IDE should look like the image below.

source

  1. Right-click on and select Properties.
  2. On the Properties dialog, click on "Java Build Path".
  3. Click on the Libraries tab, and then click "Add External JARs".
  4. Navigate to C:\selenium-2.25.0\ (or any other location where you saved the extracted contents of "selenium-2.25.0.zip".
  5. Add all the JAR files inside and outside the "libs" folder. Your Properties dialog should now look similar to the image below.

build

  1. Finally, click OK and we are done importing Selenium libraries into our project.

 

 

Related

Webinar -The curious case of native versus the cross platform development of mobile apps

The curious case of native versus the cross platform development of mobile appsBusiness is often cau...

Read More >

Customer Feedback

Your feedback is important to us. Please share your experience working with Canarys & the journe...

Read More >

Authorize access to VSTS REST APIs with OAuth 2.0

Visual Studio Team Services uses the OAuth 2.0 protocol to authorize your app for a user and generat...

Read More >

Setup Jenkins for VSO with TFVC

Jenkins provides an easy-to-use Continuous Integration method, making it easier for developers to in...

Read More >

How to use TFS 2012 Team Build for Visual Basic 6

Here is a process to build your VB6 projects in Team foundation Server 2012. 1. Have a copy of ...

Read More >

Selenium Locators

Selenium webdriver uses locators to find the web elements on web page. The following are the list of...

Read More >

Namespaces in Kubernetes

A default namespace is created automatically when the cluster is being setup. To isolate or prevent ...

Read More >

Bugzilla to TFS Migrator (Part 4 of 4) - Migration

This is the final part of the Bugzilla to TFS Migrator blog series covering the actual steps of migr...

Read More >

Building a RESTful API using python and Django

What you Need? Python 2.6+ Django 1.5+ django-tastypie  Sqllite3Django is Free and Open Source ...

Read More >

Services and Blue-Green Deployment Strategy

In this article, we’ll briefly focus on services and blue-green deployment strategy.What is a servi...

Read More >

Share

Comments

Great useful information about TestNG framework and thanks for provide step by step installation process.
3/30/2021 10:26:24 PM | Reply
wonderful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
2/8/2021 4:55:42 PM | Reply
I liked your article thanks for sharing
9/14/2020 11:15:01 AM | Reply
Thank you for sharing the article
8/17/2020 5:26:26 PM | Reply
http://dl.bintray.com/testng-team/testng-eclipse-release/use this URL instaef of the mentioned one
6/27/2020 1:24:43 PM | Reply
No, it's not working they shut the website http://beust.com/eclipse/ so not able to install on eclipse
5/22/2020 10:18:03 PM | Reply
Thanks :)
2/3/2020 11:39:48 PM | Reply

Post a Comment

Try DevOpSmartBoard Ultimate complete Azure DevOps End-to end reporting tool

Sign Up

  • Recent
  • Popular
  • Tag
Tags
Monthly Archive
Subscribe
Name

Text/HTML
Text/HTML
Contact Us
  • *
  • *