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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -