Xml Test
Xml
code posted
by
the_king
created at 25 Aug 23:54
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<TestSuite> <Test> <!-- Launch ipconfig.exe --> <Process name="ipconfig" output="foo" error="err" timeout="5"> <Arguments> <Argument /> </Arguments> </Process> <!-- Declare a variable --> <Variable name="blank" value="" /> <!-- Print out the output or the error message based on the outcome of ipconfig process --> <If test="$(err) -ne $(blank)"> <Message text="Error: $(err)" /> </If> <Else> <Message text="Success: $(foo)" /> </Else> <Test> </TestSuite> |
549 Bytes in 3 ms with coderay