[Webtest] implementing a new step

Jeannie Graham webtest@lists.canoo.com
Tue, 20 Apr 2004 08:53:44 -0700


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