How to pass parameter to data provider in testng from csv file

Hi all.

Lakshay have a good tutorial on pass parameter to data provider in testng from xlsx file with using ExcelUtils.java

Anyone have a good tutorial on how to pass parameter to data provider in testng from csv file. I need to read and write data to csv file in Linux. Please help. Thanks.

Add Comment
4 Answer(s)

Hi NexusChristo,

You can look at the tutorial at
http://www.toolsqa.com/selenium-webdriver/testng-data-provider-excel/

Thanks
Virender

Virender Singh Professor Answered on January 21, 2015.

Hi Virender Singh

What I want is CSV data provider not excel. thanks

on February 27, 2015.
Add Comment

anyone can help on how to do csv datadriven framework? thank you.

nexuschristo Train Answered on April 27, 2015.
Add Comment

Let me get back to you by tomorrow morning on this. This requires a small tutorial basically.

Virender Singh Professor Answered on April 27, 2015.

Hi Virender Singh,

Glad to hear that, I’m looking on how to do csv data provider framework with able to read and write to csv file. It will be great if it can be done in page object model framework like what Lakshay’s tutorial on excel data provider framework.

Once you done the small tutorial, pls drop me a link in this thread. Truly appreciate you kind help and hardwork. Thank you.

on May 11, 2015.
Add Comment

Hi, seems like this framework does what you want and more:
https://sourceforge.net/projects/testngdatabind

Good luck!

gusgonnet Default Answered on May 7, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.