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

Connect apps and integrate data with workflows using Azure Logic Apps

Implementing complex business process has been made easy. Logic Apps in azure provide a way to imple...

Read More >

Automating .NET builds using CCNET and TFS

CruiseControl.NET (CCNET) is an open source tool used for continuous builds on server, where testing...

Read More >

Swift Mapping and Flat Mapping

In this blog post, I will introduce some of useful tips and techniques of using swift mapping and fl...

Read More >

How to build a client side Repeater Using jQuery and ASP.NET AJAX

jTemplate is a template engine plug-in for jQuery and is commonly used to display tabular data ...

Read More >

Create a simple Chatbot App using Botframework & Xamarin.Forms

We can integrate Chatbot API with Xamarin.Forms App using two methods, Embed Code with Web View or N...

Read More >

Introduction to Load Testing

 Well, before learning what is Load testing. Let us discuss briefly the performance testing.&nb...

Read More >

Cross Browser issue, How to handle in Internet Explorer?

Cross Browser issue , How to handle in Internet Explorer?Now a days in online there are good number ...

Read More >

Manage My SMS

.main{width:677px;float:left;font: 13px/1.5 'tahoma', verdana, arial, sans-serif;}#slider1 { height:...

Read More >

Why automation testing is required and its advantages over manual testing process

What is Automation Testing?Making the manual testing process as an automatic is called Automating Te...

Read More >

New Tools in NAV 2013 (the less talked about ones) - Concluding Part

This part (as I said in my previous blog), will contain some more new tools and features focusing on...

Read More >

Share

Post a Comment

  • Recent
  • Popular
  • Tag
Monthly Archive
Subscribe
Name

Contact Us
  • *
  • *