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

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to