selenium - TestNG - @DataProvider annotation not working in Eclipse IDE? -


i using testng selenium webdriver. trying 'dataprovider' annotation working in eclipse ide. however, after adding below annotation, eclipse displays following errors:

  @dataprovider(name = "test1")   public object[][] createdata1() {    return new object[][] {      { "cedric", new integer(36) },      { "anne", new integer(37)},    };   } 

error:

multiple markers @ line:

  • type mismatch: cannot convert string ecmascriptprotos.object

  • type mismatch: cannot convert integer ecmascriptprotos.object

i using latest version of testng:

6.8.6.20130517

i using eclipse indigo. weird thing on different machine (my personal laptop), running eclipse juno, , @dataprovider annotation works fine no issues.

any appreciated?

thanks.

you must have import of ecmascriptprotos.object, remove it. object returned data provider regular java.lang.objects.


Comments

Popular posts from this blog

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -