[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 =
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 =
cannot resolve symbol
    [javac] symbol  : method getSteps ()
    [javac] location: class com.canoo.webtest.extension.IfStep
    [javac] for (Iterator iter =3D getIfStep().getSteps().iterator();

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


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!



--- Jeannie Graham <Jgraham@arrowheadgrp.com> wrote:
> Hello group,
> 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.
> Task must be of type "Step": iF at
> file:D:/canootest/Scratch/violations.xml:5:
> is of type com.canoo.webtest.extension.IfStep
> 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:
>  public void addIf( IfStep ifstep){
> 		IfWrapper step =3D new IfWrapper(ifstep);
> 		step.setStepType("if");
> 		addStep(step);
> 	}
> And I had added
> "iF=3Dcom.canoo.webtest.extension.IfStep" to the
> webtestTaskdefs property file.
> So, any ideas on what I'm doing wrong?
> Thanks,
> Jeannie
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest

Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25=A2
WebTest mailing list