Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Data Driven Testing using Selenium & TestNG Part 4 of 4

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
11,669
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 23, 2009

http://functionaltestautomation.blogspot.com/2009/10/dataprovider-data-driven...
This is how you can create data driven test scripts using Selenium and TestNG. The test data is stored in excel sheet.
Visit my blog to get the test script used in the demo video.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (maheshn2k8)

  • Don't forget to install the TestNG Eclipse Pluggin. You can get the pluggin and installation instructions from testng official site.

  • Hi mahesh,  I did exactly what you said. But unfortunately I could not execute successfully. Please help me with the issue. This is the error that I got sir.

    error in getTableArray()

    FAILED: testDataProviderExample on instance null(script.dataProviderExampl­e)

    java.lang.NullPointerException

    ... Removed 19 stack frames

    ==============================­================= script.dataProviderExample Tests run: 1, Failures: 1, Skips: 0

  • @85adit

    check the name the excel sheet and the name of the table.

see all

All Comments (15)

Sign In or Sign Up now to post a comment!
  • everythin goes fine but the script hangs at "Preparing Firefox profile..."

    PLZ HELP

  • Hii Mahesh ,that was an excellent tutorial..But I am unable to install TestNG plugin in Eclipse.Any help regarding that is greatly appreciated

  • Thanks Mate, for this lesson... this was great...

  • Amazing work mahesh.. Very informative

  • Hai mahesh, I successfully executed. Thanq u so much for the reply and for the video

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more