Google Groups Home
Help | Sign in
Setting up MXUnit ...getting a bit confused
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  21 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
James Buckingham  
View profile
 More options May 9, 10:24 am
From: James Buckingham <Clarke...@gmail.com>
Date: Fri, 9 May 2008 07:24:32 -0700 (PDT)
Local: Fri, May 9 2008 10:24 am
Subject: Setting up MXUnit ...getting a bit confused
Hi everyone,

I'm trying to setup MXUnit (in Eclipse) and getting a bit confused
about how I should be setting up my files and configuring the plugin.
This is how I've got things setup at the moment, hope this makes
sense:

CFMX7 - multiserver configuration with three instances:

Instance Name / URL : port
Main - http://mydomain.com:8300
Web - http://mydomain.com:8301
Apps - http://mydomain.com:8302

MXUnit found in main instance here: http://mydomain.com:8300/mxunit
Path address to this is: x:\\JRun4\servers\cfusion\cfusion-ear\cfusion-
war\mxunit

Test Cases are here on Apps:
http://mydomain.com:8302/interact/onlinePayments/_extensions/com/

Path address is outside JRun here:
x:\\Inetpub\iwsroot\cfusion.war\interact\onlinePayments\_extensions
\com

-------

When I try and set this up I get the following error:
ERROR getting methods for Component/ Message is:

coldfusion.xml.rpc.CFCInvocationException:
[coldfusion.runtime.CfJspPage$NoSuchTemplateException: Could not find
the ColdFusion Component
cfusion.war.interact.onlinePayments._extensions.com.IWSManagerTest.]

*Component*:
cfusion.war.interact.onlinePayments._extensions.com.IWSManagerTest

*URL*:
http://mydomain.com:8300/mxunit/framework/RemoteFacade.cfc?wsdl

-------

I've tried a variety of ways to customised the project as well but I
can't get rid of this message.

One issue (although I don't know if it is one) is that the test cases
are behind a secure area. So the application.cfc is checking for a
valid session. If it doesn't exist then it redirects to the main login
page. Would this affect the cfcs from within Eclipse at all?

Should I maybe be placing my tests somewhere else? Preferably I'd
rather not as the project is pretty nicely self contained just now. Am
I missing anything major here that I could be doing?

Any help is appreciated and let me know if you need to know anything
else.

James


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marc Esher  
View profile
 More options May 9, 10:33 am
From: "Marc Esher" <marc.es...@gmail.com>
Date: Fri, 9 May 2008 10:33:43 -0400
Local: Fri, May 9 2008 10:33 am
Subject: Re: [mxunit:431] Setting up MXUnit ...getting a bit confused
Hi James,
  for the eclipse project that contains your test cases, what is the
"path"? And what is the "right" path to this test as CF sees it?

what i'm thinking is this:

if your project root is
x:\\Inetpub\iwsroot\cfusion.war\interact\onlinePayments\_extensions\com,
then you should be able to go into project properties and set the
"component root" value to "com".  the plugin will then evaluate the
path to your tests as "com.IWSManagerTest"

or, if that's not right, if the component path as CF sees it is
interact.onlinePayments._extensions.com.IWSManagerTest", then you
could set the project component root property to
"interact.onlinePayments._extensions.com and then the plugin should
resolve it correctly.

marc


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Buckingham  
View profile
 More options May 9, 10:45 am
From: James Buckingham <Clarke...@gmail.com>
Date: Fri, 9 May 2008 07:45:03 -0700 (PDT)
Local: Fri, May 9 2008 10:45 am
Subject: Re: Setting up MXUnit ...getting a bit confused
Thanks for replying so quickly Marc.

Ok I've gone into the project properties and under Resource I've got
the following:

Path: /onlinePayments
Type: Project
Location: L:\cfusion.war\interact\onlinePayments
(I'm obviously mapping but the original post was the absolute path)

If I want to access the cfc's direct through a browser (if that's what
you mean) I would go to:
https://mydomain.com/interact/onlinePayments/_extensions/com/myCFC.cfc
Like I say that will only work once I've logged in though otherwise
I'd be redirected to the main login page.

I tried a couple of combinations, includes the ones you mention there,
plus:
/onlinePayments

but still no luck.

Does that help?

On May 9, 3:33 pm, "Marc Esher" <marc.es...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marc Esher  
View profile
 More options May 9, 10:49 am
From: "Marc Esher" <marc.es...@gmail.com>
Date: Fri, 9 May 2008 10:49:00 -0400
Subject: Re: [mxunit:433] Re: Setting up MXUnit ...getting a bit confused
when you do a normal "createObject" on thse test files, would you use
"interact.onlinePayments._extensions.com.MyCFC"

?

Marc


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Buckingham  
View profile
 More options May 9, 10:49 am
From: James Buckingham <Clarke...@gmail.com>
Date: Fri, 9 May 2008 07:49:29 -0700 (PDT)
Local: Fri, May 9 2008 10:49 am
Subject: Re: Setting up MXUnit ...getting a bit confused
If I try "com" in the project MXUnit properties I get the following
path in the MXUnit panel:

com._extensions.com.myCFC

Anything I put in the properties is just being tagged on the front of
my address. If I leave it completely blank I get:
cfusion.war.interact.onlinePayments._extensions.com.myCFC

Would the "." in the cfusion.war cause a problem at all? Sorry I'm
just stabbing in the dark here.

Cheers,
James


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Buckingham  
View profile
 More options May 9, 10:52 am
From: James Buckingham <Clarke...@gmail.com>
Date: Fri, 9 May 2008 07:52:33 -0700 (PDT)
Local: Fri, May 9 2008 10:52 am
Subject: Re: Setting up MXUnit ...getting a bit confused
Built a quick test page in the same folder as my CFCs:

<cfscript>
        test = createObject("component","myCFC");
</cfscript>

<cfdump var="#test#" />

And that returned fine on both files.

On May 9, 3:49 pm, "Marc Esher" <marc.es...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Buckingham  
View profile
 More options May 9, 10:54 am
From: James Buckingham <Clarke...@gmail.com>
Date: Fri, 9 May 2008 07:54:15 -0700 (PDT)
Local: Fri, May 9 2008 10:54 am
Subject: Re: Setting up MXUnit ...getting a bit confused
This is an actual call from the project's root application.cfc that I
built last week:

application.payment.com.myCFC =
createObject('component','_extensions.com.myCFC').init();

Again that works fine.

On May 9, 3:52 pm, James Buckingham <Clarke...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marc Esher  
View profile
 More options May 9, 10:59 am
From: "Marc Esher" <marc.es...@gmail.com>
Date: Fri, 9 May 2008 10:59:12 -0400
Local: Fri, May 9 2008 10:59 am
Subject: Re: [mxunit:437] Re: Setting up MXUnit ...getting a bit confused
ah. do you have "_extensions" mapped in cfadmin?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Buckingham  
View profile
 More options May 9, 11:02 am
From: James Buckingham <Clarke...@gmail.com>
Date: Fri, 9 May 2008 08:02:06 -0700 (PDT)
Local: Fri, May 9 2008 11:02 am
Subject: Re: Setting up MXUnit ...getting a bit confused