first question - did you configure your classpath in Eclipse manually? I would suggest to try a build tool with dependency management such as Maven, Ant+Ivy or Gradle. It will save you a lot of time when dealing with dependencies and configuration. I would also strongly recommend to use newer version of Arquillian, preferably 1.0.0.CR7. I see from the screenshot that you are using quite old Alpha5. A lot have been improved since then.
Please have a look at Arquillian Showcase on GitHub. Some modules are using TestNG while other are based on JUnit.
Thanks for your quick response, I agree that I will need to use the dependancy tool, however at this time, I am trying to get the implementation done as a POC for my project, which will be with simple files and making Arquillian as remote client.
I had taken CR7 jars from jboss org site.
There were some interdependancy due to that I have to take few old ones as well. Here is the new jars listed:
I am still seeing the same error while running it as TestNG Test. I am sure I must be missing on some configuration settings....
as I can see from the attached screenshot you still have some Alpha5 leftovers in the classpath. Could you please provide .classpath file, test class and full stacktrace which you are getting?
On the other hand I will still try to convince you to use Maven (as all showcases are build on that). Besides not struggling with manual dependencies you could have profiles to run your tests on different containers very easily. You can follow this "Getting Started" guide to see yourself that it is in fact very easy.
Here is the log file and .classpath attached.
Since we are using SVN as our repository, I would like to go for TestNG, Arqillian and SVN option to create the POC. I had seen the maven examples , they art e helpful too, but while molding it to my project requirement, it is giving issues...
Thanks, I will have a look soon.
I've been using maven and ant based project versioned by SVN without any issues but I understand that you might have some strict requirements / processes where neither of those two can be used.
Do you have arquillian.xml configuration and test class which you can share too? That might be really helpful to understand the whole picture.
Did you get a chance to find out what is wrong? or any other way I could do it?
Yes, that helped me, now moved ahead in creating the test but still getting an NPE whenever I run the java prg with TestNG.
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
I have verified from the code that it is trying to get Deployable Test and failing in getting so. Not sure what is wrong, I have added following jar in it :
And these are the other supporting jars:
Ok, I am able to run the arquillian with TestNG , I was missing arquillian-testng-standalone-1.0.0.Final.jar in my class path, after adding it, It ran fine, so I could able to test a simple class of TestNG with Arquillian without Maven now.