Video20-part3 issue | Selenium Forum
M
Posted on 17/01/2017
Hi,


I have constants.java file as below

.............................................................................
package com.Rumaselenium.framework.datadriven.util;

public class Constants {
// suiteNames
public static String PORTFOLIO_SUITE="PortFolioSuite";
public static String SECOND_SUITE="StockSuite";
public static String ROOT_SUITE="My Project";


//sheets
public static String SUITE_SHEET="Suite";
public static String TESTCASES_SHEET="TestCases";
public static String DATA_SHEET="Data";
}
.............................................................................

but in Utility.java i am geting error


package com.Rumaselenium.framework.datadriven.util;

import java.util.Hashtable;

import bsh.org.objectweb.asm.Constants;

public class Utility {



// test suite is runnable
public static boolean isSuiteRunnable(String suiteName, Xls_Reader xls){
int rows = xls.getRowCount(Constants.SUITE_SHEET);

for(int rNum=2;rNum<=rows;rNum++){
String data = xls.getCellData(Constants.SUITE_SHEET, Constants.SUITENAME_COL, rNum);
if(data.equals(suiteName)){
String runmode = xls.getCellData(Constants.SUITE_SHEET, Constants.RUNMODE_COL, rNum);
if(runmode.equals("Y"))
return true;
else
return false;
}
}

return false;
}



}


Note: I am getting cannot resolved or is not a field


Constants.SUITE_SHEET its getting as "SUITE_SHEET cannot be resolved or is not a field"


Regards
Ruma

M
Replied on 17/01/2017

I am facing issue because from one package to another package I am not able to import


M
Replied on 17/01/2017

send a screen shot of error.