[Webtest] iF statement patch
Lisa Crispin
webtest@lists.canoo.com
Wed, 04 Aug 2004 15:17:29 +0000
Thanks so much for the clear example!
-- Lisa
>
> > -----Original Message-----
> > From: webtest-admin@lists.canoo.com
> > [mailto:webtest-admin@lists.canoo.com]On Behalf Of Ji Kim
> > Sent: Dienstag, 3. August 2004 20:44
> > To: webtest@gate2.canoo.com
> > Subject: RE: [Webtest] iF statement patch
> >
> >
> > I don't know if it's in the latest. (My guess is no but easy enough to
> > find out. src/com/canoo/extension/Ifstep.java. In some ways, I do agree
> > that conditional testing is not a good idea. But in reality, at least
> > for me, this has some use.) But I went through the same not finding the
> > examples. So, here it is.
> >
> > The ant property var1 is set to true. (in property file: var1=true or
> > in the build file.)
> >
> > > > stepid="test ant property condition"
> > test="${var1}">
> > > > stepid="inside the 1st test condition"
> > text="some conditional test text string or reg ex"
> > />
> >
> >
> > The dynamic property var2 is set to true. (e.g. > > xpath="count(//a) > 0" property=var2/>)
> >
> > > > stepid="test dynamic property condition"
> > test="#{var2}">
> > > > stepid="inside the 2nd test condition"
> > label="Here"
> > />
> >
> >
> > Like , you can have multiple steps between and .
> >
> > -----Original Message-----
> > From: webtest-admin@gate2.canoo.com
> > [mailto:webtest-admin@gate2.canoo.com] On Behalf Of lisa.crispin@att.net
> > Sent: Tuesday, August 03, 2004 10:40 AM
> > To: webtest@gate2.canoo.com
> > Subject: [Webtest] iF statement patch
> >
> >
> > Is this patch integrated in the build now, or is it still only available
> > as a patch?
> >
> > And is there an example anywhere of what the 'iF' looks like in the
> > actual WebTest script? Jeannie said there was an example in her
> > posting, but I couldn't find it (doesn't mean it wasn't there, I might
> > just not get it).
> >
> > Thanks,
> > Lisa
> >
> >
> > --- Jeannie Graham wrote:
> > > It looks like my stupid email blocker won't let me send zip files, so
> > > I am only sending the actual files (cuz they're small) but I can't
> > > send the html
> > > syntax file. The iF statment has to look like this
> > > in your scripts, "iF" -
> > > small i, capital F.
> > >
> > >
> > > -----Original Message-----
> > > From: Jeannie Graham
> > > Sent: Wednesday, May 05, 2004 9:55 AM
> > > To: 'webtest@lists.canoo.com'
> > > Subject: [Webtest] If statement patch
> > >
> > >
> > > Hello everyone,
> > >
> > > Well, here it is! I finally got the IF statement
> > > patch that Aatish
> > > sent to work (endless thanks to Aatish for making it
> > > possible!). First, I
> > > had to make some tweaks to the files that Aatish sent me, IfStep.java
> > > and
> > > IfWrapper.java. I also had to tweak
> > > TestStepSequence.java.
> > >
> > > Now, to add the patch and compile Canoo Webtest:
> > > 1). Put both IfStep.java and IfWrapper.java into the WEBTESTHOME,
> > > extension directory.
> > > 2). Update your TestStepSequence.java file, which is in the
> > > WEBTESTHOME,
> > > ant directory.
> > > 3). Update your webtestTaskdefs.props file, which is in the
> > > WEBTESTHOME directory, with "iF=com.canoo.webtest.extension.IfStep".
> > > 4). Build the build file to compile the changes, C:\WEBTESTHOME>ant.
> > > 5). Copy the new webtest.jar file in the deployment/lib directory to
> > > the main lib directory.
> > >
> > > And now, you should be able to do an iF statement.
> > > I am also including the
> > > html file that Aatish sent me, showing the syntax of the iF statement.
> > >
> > > Hope everyone enjoys,
> > > Jeannie
> > > <>
> > _______________________________________________
> > 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
> >
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest