Changes to Data Driven example?

This is from you example for data driven framework.   Do these items need to be changed somehow.

 

I keep getting “Constant cannot be resolved to a variable”.  

 

// Constant variables Test Data path and Test Data file name

FileOutputStream fileOut = new FileOutputStream(Constant.Path_TestData + Constant.File_TestData);

ExcelWBook.write(fileOut);

fileOut.flush();

fileOut.close();

}catch(Exception e){

throw (e);

 

And for this I get  “RETURN_BLANK_AS_NULL cannot be resolved or is not a field”

public static void setCellData(String Result, int RowNum, int ColNum) throws Exception {

try{

Row = ExcelWSheet.getRow(RowNum);

Cell = Row.getCell(ColNum, Row.RETURN_BLANK_AS_NULL);

if (Cell == null) {

Cell = Row.createCell(ColNum);

Cell.setCellValue(Result);

} else {

Cell.setCellValue(Result);

Add Comment
  • 0 Answer(s)
  • Your Answer

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