[Webtest] is it possible to include python in Webtest XML code
Paul King
Paul King <paulk@asert.com.au>
Tue, 16 Jan 2007 22:00:17 +1000
For the particular case mentioned, the following Groovy
code would also get the hostname (assuming you are running
your test on the appropriate machine which I assume is the
case for your python script to work):
"hostname".execute().text
Cheers, Paul.
Chang Su wrote:
> Hi,
>
> I like to use some of my existing python code that
> does data acquisition in my bui test automation code
> which I plan to use webtest.
>
> For example, if the BUI display the host name is
> qa_machine_2, I like to lanuch my python code which
> runs cli 'hostname' on the machine and compares the
> result as one of my tests.
>
> So the question is, is there a way to include python
> inside webtest xml code?
>
>
> thanks,
>
> Chang
>