Hi,
I am new to Seam and TestNG but familiar already with Eclipse, JBoss, and
JUnit.I've built the registration example using ant and got it working in
JBoss. I also successfully ran its TestNG test using ant. I'm trying to get
my first simple code working as an Eclipse project by copying the
"registration" example (and just the registration example, because I want just
my own project, not the entire Seam project as well). I've got the example and
its test compiling fine but when I try to run the TestNG Eclipse plugin on the
test, it fails right away at the first assertion:
| public class RegisterTest extends SeamTest
| {
|
| @Test
| public void testLogin() throws Exception
| {
|
| new Script() {
|
| @Override
| protected void updateModelValues() throws Exception
| {
| User user = (User) Component.getInstance("user", true);
| assert user!=null;
| ...
I notice in the ant output that various configuration files are read:
anonymous wrote : [testng] INFO 22-06 17:24:27,082
(Log4JLogger.java:info:94) -reading components.xml
| [testng] INFO 22-06 17:24:27,207 (Log4JLogger.java:info:94) -reading
properties from: /seam.properties
| [testng] INFO 22-06 17:24:27,207 (Log4JLogger.java:info:94) -reading
properties from: /jndi.properties
so I'm guessing that I'm missing some magic configuration files in their proper
places, which seems reasonable since Seam needs various configuration files to
run. Unfortunately, since I'm quite new to Seam and TestNG I'm at a loss to
figure out which files go where and I've already flailed around trying to
figure that out. :(
I have seen the testing chapter 12 of the Seam reference, as well as the
readme.txt section on running the Eclipse TestNG plugin on the entire Seam
download, and googled, but didn't see anything about how to run TestNG tests
from the Eclipse plugin on a project separate that uses Seam but is not Seam
itself.
If there's already an explanation (or if I've done something stupid), I will
humbly accept an RTFM pointer. :-) If not, could somebody please list what
needs to be done to run Seam TestNG tests using the Eclipse plugin.
Thank you.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952855#3952855
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952855
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user