[Webtest] implementing a new step

Aatish Arora webtest@lists.canoo.com
Wed, 21 Apr 2004 23:29:04 -0700 (PDT)


Jeannie,

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

public class IfStep extends TestStepSequence

?????

If yes then try changing it to 

public class IfStep extends Step

???

Hope it works!

cheers!
Aatish


LabelTestStepSpecification

--- 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.
> 
> 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
> 
> 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 = new IfWrapper(ifstep);
> 		step.setStepType("if");
> 		addStep(step);
> 	}
> 
> And I had added
> "iF=com.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
http://photos.yahoo.com/ph/print_splash