Re: Help running ATG unit tests

Lorenzo Thurman <[email protected]> Mon, 19 Apr 2010 11:13:06 -0500
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
--Apple-Mail-464--818872656
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Thank you, now I'm at the next error:
ClassNotFoundException for my tests. The class file in not being built.
Any ideas?


On Apr 19, 2010, at 11:00 AM, Ashish Aggarwal wrote:

> Hi Lorenzo:
>=20
> The error which you are getting =
"org.apache.cactus.util.ChainedRuntimeException: Missing Cactus =
property[cactus.contextURL]" is because of the missing cactus.contextURL =
property value. Though I dont know much about ATG but here is how you =
can setup this property in your cactified web application:
>=20
> Considering that you have a test class ApplicationDaoTest (basically a =
Junit class) which extends ServletTestCase, you can create a method in =
this class:
>=20
> 	public void begin(WebRequest request){
> 		=
request.addParameter("cactus.contextURL","http://localhost:9080/CisAccount=
EjbCactusTestSuite");
> 	}  =20
>=20
> You will need to change the URL value to the appropriate value of your =
application.=20
>=20
> This should get you going.
>=20
> Regards
> Ashish
>=20
> On Mon, Apr 19, 2010 at 8:06 AM, Lorenzo Thurman =
<[email protected]> wrote:
> Does anyone have any experience using Cactus to run unit tests for =
ATG? I found this page:
> http://www.onwhichsubject.com/DynaCactus/
>=20
> But it leaves much out. At least for me, a complete novice to both =
platforms.
> I got Cactus installed and setup according to the instructions. I =
created the sample test shown on the page and tried to run it as a junit =
test, but I get this error:
> org.apache.cactus.util.ChainedRuntimeException: Missing Cactus =
property[cactus.contextURL]
>=20
> The page suggests that you setup a special ATG module that will run my =
tests, which I did.
> I've created a cactus.properties file and place it in the WEB-INF =
folder of the test Dynamo project module setup to run my tests.
> Can someone help me out here?
> Thanks
>=20
> "A good friend will help you move. A really good friend will help you =
move a body"
> --Unknown
>=20
> Lorenzo Thurman
> [email protected]
>=20
>=20
>=20

"Be careless in your dress if you will, but keep a tidy soul."
-- Sam Clemens

Lorenzo Thurman
[email protected]





--Apple-Mail-464--818872656--