[LDTP-Dev] Linux Desktop Testing Project editor
konghao
konghao at bsw.net.cn
Sun Nov 18 23:18:03 PST 2007
Hi,
Sorry for disturbing:)I have another issue.
After successful run these commands:
$./configure -prefix=/usr
$make
#make install
I installed LDTP0.9.2 in FC6 and I can launch the ldtpeditor gui.
After recording steps by using ldtpeditor,I got a gcalctool.py script like that:
----------------------------------------------------------------------------
from ldtp import *
from ldtputils import *
try:
log ("test script", "teststart")
click ("frmCalculator", "btnNumeric9")
click ("frmCalculator", "btnDivide")
click ("frmCalculator", "btnNumeric6")
click ("frmCalculator", "btnCalculateresult")
log ("test script", "pass")
log ("test script", "testend")
except LdtpExecutionError, msg:
log (str (msg), "cause")
log ("test script", "fail")
log ("test script", "testend")
raise LdtpExecutionError (str (msg))
----------------------------------------------------------------------------
then I type:
$python ./gcalctool.py
then I got the issue:
---------------------------------------------------------------------------
Traceback (most recent call last):
File "./gca.py", line 14, in ?
except LdtpExecutionError, msg:
NameError: name 'LdtpExecutionError' is not defined
--------------------------------------------------------------------------
It seems the "from ldtp import *" or "from ldtputils import *" didn't work?
Thanks for you attention!
Konghao
More information about the LDTP-dev
mailing list