[Webtest] implementing a new step

Aatish Arora webtest@lists.canoo.com
Mon, 26 Apr 2004 09:32:07 -0700 (PDT)


Hi Jeannie,

How about just the package def as:
package com.canoo.webtest.extension;

(the first line in the code)

....and the class definations as:

1) public class IfWrapper extends StepContainer
 
---> for IfWrapper.java


2) and public class IfStep extends TestStepSequence
---> for IfStep?

cheers!
Aatish

PS: im no java programmer...so bear with me :)

--- Jeannie Graham <Jgraham@arrowheadgrp.com> wrote:
> 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 =
> 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 
> 
> 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
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> _______________________________________________
> 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