follow bellow given steps to run data fetching script In eclipse.
DOWNLOAD MySqlReadData.zip folder. You will get MySqlReadData.java test script file In zip folder when extract It. Import It In your eclipse and then execute.
If everything Is correct then console output of above example will be as bellow.
That means our MySql data fetching test Is successfully completed.
This Is sample test script to show you how to extract data from MySql database. If you have application which store data In MySql database then first you need to Insert data In database using Selenium WebDriver test and then you can verify that data directly from DB as given In this example script. NEXT POST will describe you how to execute query with where clause to fetch specific record from db.
One thought on “Fetching Data From MySQL Database Table For Selenium WebDriver Test”
above link to DOWNLOAD MySqlReadData.zip is not opening. Please provide the correct URL .