[Webtest] implementing a new step

Jeannie Graham webtest@lists.canoo.com
Thu, 22 Apr 2004 09:33:54 -0700


Hi Aatish,

	That didn't seem to work, I got two compile errors from it:

[javac] C:\WEBTESTHOME\src\com\canoo\webtest\extension\IfStep.java:16:
com.canoo.webtest.extension.IfStep is not abstract and does not =
override
abstract method doExecute(com.canoo.webtest.engine.Context) in
com.canoo.webtest.steps.Step  [javac] public class IfStep extends Step

[javac] C:\WEBTESTHOME\src\com\canoo\webtest\extension =
IfWrapper.java:91:
cannot resolve symbol
    [javac] symbol  : method getSteps ()
    [javac] location: class com.canoo.webtest.extension.IfStep
    [javac] for (Iterator iter =3D getIfStep().getSteps().iterator();
iter.hasNext();)

but you were right about the "extends TestStepSequence".

-----Original Message-----
From: Aatish Arora [mailto:a_aatish@yahoo.com]
Sent: Wednesday, April 21, 2004 11:29 PM
To: webtest@lists.canoo.com
Subject: Re: [Webtest] implementing a new step


Jeannie,

In IfStep.java ...is the class defination like:

public class IfStep extends TestStepSequence

?????

If yes then try changing it to=20

public class IfStep extends Step

???

Hope it works!

cheers!
Aatish


LabelTestStepSpecification

--- Jeannie Graham <Jgraham@arrowheadgrp.com> wrote:
> Hello group,
>=20
> I received the IF statement patch (thanks to Aatish)
> and I finally got past
> all the compile errors and when I actually tried to
> use it, I got this
> error.
>=20
> BUILD FAILED
> Task must be of type "Step": iF at
> file:D:/canootest/Scratch/violations.xml:5:
> is of type com.canoo.webtest.extension.IfStep
>=20
> I tracked down that error message located in
> TestStepSequence, and I had
> added this snippet of code, hoping to remedy it, but
> it didn't:
>=20
>  public void addIf( IfStep ifstep){
> 		IfWrapper step =3D new IfWrapper(ifstep);
> 		step.setStepType("if");
> 		addStep(step);
> 	}
>=20
> And I had added
> "iF=3Dcom.canoo.webtest.extension.IfStep" to the
> webtestTaskdefs property file.
>=20
> So, any ideas on what I'm doing wrong?
>=20
> Thanks,
> Jeannie
>=20
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest



=09
	=09
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25=A2
http://photos.yahoo.com/ph/print_splash
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest