Tuesday, 17 June 2014

Data Driven Framework - CSV


"Data Driven Framework(DDF) for CSV" reads the test data from CSV file.
DDF CSV Wrapper doesn't depend on other jar files.

Prerequisite:
1. Java 1.6
2. Eclipse IDE
3. Eclipse IDE configured with TestNG Plugin.

Set the java build path for jar file, follow the below steps:
1. Download the  "AH-DDF-<<Version>>.zip" from repository.
2. Extract the "AH-DDF-<<Version>>.zip"
3. Extracted "AH-DDF-<<Version>>.zip" contains the "docs", "release notes", "AH-DDF-<<Version>>.jar" and "examples".
4. Set "AH-DDF-<<Version>>.jar" in the java build path.

Working with example program:
5. Copy the "examples" folder present in the extracted "AH-DDF-<<Version>>.zip" file into the "src" folder of Eclipse IDE project.
6. Update the CSV file path in "TestData.java" present at "\src\examples\test\csv\TestData.java"

Execution:
7. Execute the "TestData.java"
> Open the "TestData.java"
> Right click in the eclipse ide(i.e. in "TestData.java")
> Select the menu "Run As" --> "TestNG Test"
> "TestData.java" is executed by "TestNG API" with the help of "TestNG Plugin" configured in Eclipse IDE (Pre-requisite: TestNG Plugin is configured for Eclipse IDE).

Results (or) output is displayed in the Console.
8. To see the console click on "Windows" menu --> "Show View" --> "Console"

DDF-CSV  Versions
Click the below links to access the pages.
DDF CSV - Version 3.0.3
DDF CSV - Version 3.0.2
DDF CSV - Version 3.0.1
DDF CSV - Version 3.0

<< Previous

No comments:

Post a Comment