[Webtest] ANT prop in Doctype
Marc Guillemot
Marc Guillemot <mguillemot@yahoo.fr>
Mon, 27 Aug 2007 12:46:48 +0200
Hi Sachin,
I guess this won't work because entity resolution is not an Ant feature
but an xml feature. This means that it is done before Ant really comes
in play.
In a project I have something a bit similar: the way to the "start" page
of the application differs between the environments. To handle this
without affecting the tests, I use a macro like <goToStartPage/>.
Depending on the environment on which the tests have to run, one variant
of the macro is defined or one other.
Marc.
--
Blog: http://mguillem.wordpress.com
Thakkar, Sachin wrote:
> Hey everyone,
>
> I was wondering if anyone has used an ANT property in the Doctype settings.
>
> I basically want to do:
> <!DOCTYPE project [
> <!ENTITY service SYSTEM "modules/${service}">
> ]>
>
>
> I have set the ant property when I call webtest for service and I am
> able to use it for the config but it won't get picked up in the entity
> file name. I'm not really sure if this is possible.
>
> What my intention is:
> Trying to use a shell type test and only pass a service name to
> import the appropriate steps module.
>
> Please suggest better methods if available.
>
> Thanks,
> sachin
>