RE: [testng-users] Setting up TestNG in Eclipse

1,831 views
Skip to first unread message

Leonardo Galani

unread,
Nov 29, 2012, 12:03:49 PM11/29/12
to testng...@googlegroups.com
you should use the lib from testng.. the plugin just help u out to run tests and creat the testng.xml ;)

get the lib and put it on you build path

De: halvrson
Enviada em: 29/11/2012 14:56
Para: testng...@googlegroups.com
Assunto: [testng-users] Setting up TestNG in Eclipse

I just added TestNG to my eclipse (Juno) via Help -> Install New Software.  Then I created a New TestNG for a Java class that I am working on.  In the code that was generated, there is an

import org.testng.annotations.Test;

This lines shows the error "The import org.testng cannot be resolved" and suggests that I "Add the Add the TestNG library to the project's build class path"

So I went to Window -> Preferences -> Java -> Build Path -> Classpath Variable and added

TESTNG_HOME - /home/halvrson/Development/eclipseSDE/eclipse/plugins/org.testng.eclipse_6.8.0.20121120_1820

Unfortunately, I still get this same error.  Can anyone please tell me what I am doing wrong?

--
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/-/DhJmvA-j_lMJ.
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.

halvrson

unread,
Nov 29, 2012, 3:30:59 PM11/29/12
to testng...@googlegroups.com
Thank you! I downloaded testng-6.8, what is my build path?  ie. where should I copy testng-6.8.jar?  I am running on Linux.

Leonardo Galani

unread,
Nov 29, 2012, 4:33:13 PM11/29/12
to testng...@googlegroups.com
err.. maybe on a custom dir on your projcect path.. somewhere u wil not delete it by mistake :D

than put it on your build lib path!
and btw its a jar file....

and im sorry.. you also can go the lib build path, click on add lib and testng lib will be there (cz u had installed the plugin)

De: halvrson
Enviada em: 29/11/2012 18:31
Para: testng...@googlegroups.com
Assunto: Re: [testng-users] Setting up TestNG in Eclipse
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/09VC8pSr_A0J.
Reply all
Reply to author
Forward
0 new messages