All pastes #278642 Raw Edit

lavi

public text v1 · immutable
·published 2006-12-14 07:19 UTC
rendered paste body
=========== test.py ============

def test():
    raise "hehh"
    return 1

if test() <= 0:
    print 'Impossible Nothing'

============ test.xml ============
<?xml version="1.0"?>
<ldtp>
	<logfileoverwrite>0</logfileoverwrite>
	<logfile>test_log.xml</logfile>
	<testcaseid>141919</testcaseid>
	<group>
		<script>
			<name>test.py</name>
		</script>
	</group>
</ldtp>


--> run following commands:
$> ldtprunnder test.xml

========== The outcome ============
<ldtp>
<WARNING>testcaseid entry not present - skipping</WARNING>
<WARNING>comment entry not present - skipping</WARNING>
<GROUPSTART>Executing group1</GROUPSTART>
<SCRIPTSTART>test.py</SCRIPTSTART>
<WARNING>data xml tag missing</WARNING>
<ERROR>Traceback (most recent call last):
  File "/usr/local/bin/ldtprunner", line 231, in executescript
    execfile (scriptname, scriptglobal)
  File "test.py", line 6, in <module>
    if test() <= 0:
  File "test.py", line 3, in test
    raise "hehh"
hehh
</ERROR>
<SCRIPTEND>test.py</SCRIPTEND>
<GROUPEND>Executing group1</GROUPEND>
</ldtp>