4 messages in com.canoo.lists.webtestAW: [Webtest] how to launch canoo tes...
FromSent OnAttachments
Dierk Koenig18 Jan 2007 07:17 
Chang Su19 Jan 2007 16:56 
Zoth, Jochen20 Jan 2007 01:15 
Marc Guillemot25 Jan 2007 00:49 
Subject:AW: [Webtest] how to launch canoo tests (XML) inside python script??
From:Zoth, Jochen (joch@masterbit.com)
Date:01/20/2007 01:15:02 AM
List:com.canoo.lists.webtest

Hi Chang,

I'm not very familiar with python, but if you want to execute webtest from
python you could use something like os.system() to run an external command.

If you are just looking for a way to parse/retrieve HTML in python, maybe this
is interesting for you: http://docs.python.org/lib/module-htmllib.html http://www.boddie.org.uk/python/HTML.html

Jochen.

-----Ursprüngliche Nachricht----- Von: webt@gate2.canoo.com [mailto:webt@gate2.canoo.com] Im Auftrag von Chang Su Gesendet: Samstag, 20. Januar 2007 01:57 An: webt@gate2.canoo.com; Dierk Koenig Betreff: [Webtest] how to launch canoo tests (XML) inside python script??

Hi, all,

I am seeking on ideas on how to mix python script with webtest.

This is what I am trying to accomplish,

1) start with python sript

2) launch a command on remote machine and get the results back, say cpu_temperature returned is 60F.

3) navigate BUI web pages to retrieve cpu temperature in a table, say cpu_temperature_bui = 59

4) compare 2) and 3) and decide tests fail

is there a way to do this? how do I launch canoo tests (XML) inside python script?? The reason I really wanted to do this is that we have existing python script to do 1) and 2) already.

your help is appreciated!!

thanks,

Chang