I've installed the all updated plug ins in netbeans thro' auto update.
After restarting Netbeans, I created a new project named openPM. Here,
I have added the libraries -
juint-3.8.1.jar
selenium-java-client-driver.jar
testNG5-testNG-5.6-jdk15.jar under. Also, I've added the
juint-3.8.1.jar & testNG5-testNG-5.6-jdk15.jar under Test Libraries.
Now, when I tried creating a New File using File -> New File -> JUnit
(Categories) -> TestCaseNG.java (File Types) ->classname -
NewTestCaseNG1
Project - OpenPM
Location - Source Pacakges
Package - com.thoughtworks.selenium
Created File - T:\selenium\OpenPM\src\java\com\thoughtworks\selenium
\NewTestCaseNG1.java -> Next -> ( in this page, I didn't check any
Generate...... and give any name to Class Group Name -> Finish. It
gave a information dialog box holding a message - "No feature TestNG
found".
This, java file is created in source pacakages. It is not adding Test
NG Project Extensions to Project Extensions in project extensions
window of Netbeans ( like how given in http://blogs.sun.com/xzajo/?entry=test_ng_plugin_for_netbeans
).
I don't know what to do? Please anybody who has worked on this, guide
me here.
Cheers,
Brindha
Unfortunately, I don't think we have the answer to your question :-(.
The plugin has been developed by a guy working for Sun/Netbeans team,
which has discontinued its support. We haven't got access to the
source code, and I don't think there is anybody currently working on
it.
I have tried a couple of times to contact him and other people I know,
but with no result. If anybody else has better connections, it would
be great to have this plugin aligned with the support we are offering
for the other IDEs (the Eclipse plugin is at least on par with the
JUnit plugin, the IntelliJ Idea plugin is now distributed as part of
the main distribution).
bests,
./alex
--
.w( the_mindstorm )p.
TestNG co-founder
EclipseTestNG Creator
I am so happy to receive a response so quickly. But, I feel sad that
I've no solution to my query. So, you mean we can't use TestNG with
Netbeans IDE. Then, shall I proceed with eclipse? Does TestNG can be
used in a full swing using eclipse? If so, let me run further (rather
walking). Or suggest me some option to make use of TestNG in an
efficient way. Because, I found TestNG usage for Selenium RC is good
testing framework which covers functional testing, unit testing,
regression testing, sanity testing and browser compatablitly testing.
I wish to succeed in this. I will be thankful to you if you help me
and show me a source where I will get into the right track.
Cheers,
Brindha
On Sep 11, 6:49 pm, "Alexandru Popescu ☀"
<the.mindstorm.mailingl...@gmail.com> wrote:
> Hi Brindha!
>
> Unfortunately, I don't think we have the answer to your question :-(.
> The plugin has been developed by a guy working for Sun/Netbeans team,
> which has discontinued its support. We haven't got access to the
> source code, and I don't think there is anybody currently working on
> it.
>
> I have tried a couple of times to contact him and other people I know,
> but with no result. If anybody else has better connections, it would
> be great to have this plugin aligned with the support we are offering
> for the other IDEs (the Eclipse plugin is at least on par with the
> JUnit plugin, the IntelliJ Idea plugin is now distributed as part of
> the main distribution).
>
> bests,
>
> ./alex
> --
> .w( the_mindstorm )p.
> TestNG co-founder
> EclipseTestNG Creator
>
I dont think anyone should pick an IDE based on which specific tool
works well, or pick a test framework based purely on IDE support.
1. You can run the testng tasks under Ant under NetBeans; NB is very
ant-centric and one of the NB developers is an ant committer. By
adding the test tasks to your build file, you get tests that run under
your continuous integration server too.
2. From the open source perspective, you now have an opportunity to
write your own plugin.
Alexandru, do you have the name/email of the person who wrote the
first plugin? I will ping the NB member on the Ant team to see if he
can track it down. Otherwise, time to start from scratch.
I think his name is on the page the OP posted in his email.
I read your reply. I agree on what you are saying. Let me resume my
working on that. Meanwhile, if you could or anybody could find a
solution, post me.
Thanks in advance.
Cheers,
Brindha
On Sep 13, 1:36 pm, "Steve Loughran" <steve.lough...@gmail.com> wrote:
> can track it down. Otherwise, time to start from scratch.- Hide quoted text -
>
> - Show quoted text -
Sent off an email to a netbeans contact. Given that the blog is dead
for the last 10 months -not even spam filtering- I fear the TestNG
plugin author may be an ex-sun employee now, but the source may be
locateable.
[I'm not an nbeans user, but we have a SmartFrog plugin for which
getting building under Ant is on my todo list; building it and the
Eclipse plugin are both pretty painful. But there are some nice
features for adding new languages in NetBeans,]
http://nbxdoclet.cvs.sourceforge.net/nbxdoclet/xdsuite/TestNG/
Whoever wants it, gets to build it!
<p>Another approach is to customize NetBeans to call TestNG via the Ant build.xml file, for the Test Project, Run (Test) File, and Debug (Test) File commands. For NetBeans standard Java projects this can be as simple as adding an import to the build.xml file, as described in "NetBeans and Alternative Test Runners: Customizing Standard Java Projects" ( <a href="http://www.geocities.com/nimarukan/log/index.html">abstract</a>, <a href="http://www.geocities.com/nimarukan/netbeans/nbtargets/nbtargets-alt-test-%20runners.html">article</a> ). For NetBeans free-form projects (arbitrary ant build.xml file), there are no standard test commands, but you can add custom commands that invoke TestNG using the specific properties of that build file (see related work).</p>
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=122927&messageID=196467#196467
Petr chose to work on his PhD rather than testng integration.
-------- Original Message --------
Subject: Re: Source for TestNG plugin for NetBeans
Date: Thu, 13 Sep 2007 19:02:02 +0200
From: Petr Zajac
Hello,
CVS of TestNG plugin is available at
http://sourceforge.net/cvs/?group_id=134607
I don't recommend to use them. I have few reason why not to use them:
1) I developed Project Natures support for NetBeans 5.x. It adds
pieces of buildscript to project buildscript. For testNG it add
targets and action to run tests. There was implemented some support to
extends build script in NetBeans 6.0.
http://wiki.netbeans.org/wiki/view/BuildScriptExtensibility
I recomment to use the use rather the new api them my unsupported
Project Natures.
2) New templating system was added to NetBeans 6.0 and java model
based on MDR was replaced by brand new based on javac tree API.
Therefore my templates are obsolete.
I don't have time do develop the nbxdoclet and TestNG support for
NetBeans:(. I decided to rather work on my PhD thesis.
Petr