Maven Ant Project | Selenium Forum
M
Posted on 18/05/2016
Hello Sir,
I created maven project. then i configured ant.
Moved to project location where my ant.xml is placed ,I did all the necessary changes in ant xml.
i was able to run project using ant from cmd.
I did all as shown in tutorial 39 for ant configuration.
Then when i gave command ant clean which deleted the build folder and again i gave command to configure ant.
And the project was running fine.
[b:wd9lz6ex]But the problem araised is such that not i cannot run project from testNG.xml
In console i am getting following error.
Cannot find class in classpath:[/b:wd9lz6ex]




Now i am only able to run project from ant not from testNG.xml

M
Replied on 18/05/2016

there is no ant.xml there is build.xml


M
Replied on 18/05/2016

ya sorry its build.xml.

but my question remains same......
I dont know at present scenario it seems to be solved .
I cleaned the project by reading posts from stackoverflow.


M
Replied on 18/05/2016

do this Window -> Preferences -> TestNG and uncheck 'Use project TestNG jar.


M
Replied on 19/05/2016

I am not finding this at this location or anywhere else in TestNG settings


M
Replied on 19/05/2016

install testng plugin

http://stackoverflow.com/questions/5230702/how-to-install-testng-plug-in-for-eclipse


M
Replied on 19/05/2016

Ya,Uninstalled testng and then reinstalled it and now it is working fine.
Sir,
may i know the root cause for it. What caused the error.


M
Replied on 19/05/2016

probably some bug in testng.


M
Replied on 19/05/2016

OK sir,
Currently i am running my test using jenkins,ant, maven . But when using this tool i am getting my logs generated in Application.log . My logs get generated perfectly when i run my project in eclipse .
Is their any extra settings i should do.


M
Replied on 20/05/2016

you have to add dependency for log4j in pom.xml