Hi All,
I am a newbie to testng.I have used a factory method in the following way in code:
@Factory(dataProviderClass=test.DVODataProvider.class,dataProvider="SampleDataProvider")
public ExcelSheetReader(String line) {
Execution via testng.xml is working fine and see the output as expected.I want to run the same through Ant build file.But the compilation fails with error
C:\Users\nraj\workspace\TestNGDemo1\src\test\ExcelSheetReader.java:47: cannot find symbol
[javac] symbol : method dataProviderClass()
[javac] location: @interface org.testng.annotations.Factory
[javac] @Factory(dataProviderClass=test.DVODataProvider.class,dataProvider="fileDataProvider")
[javac] ^
[javac] C:\Users\nraj\workspace\TestNGDemo1\src\test\ExcelSheetReader.java:47: annotation type not applicable to this kind of declaration
[javac] @Factory(dataProviderClass=test.DVODataProvider.class,dataProvider="fileDataProvider")
Can someone please guide me how to overcome this error.
Thanks in advance
Neha
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/b-gVVZATsT0J.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.