<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Console UI</title>
<link href="../book.css" type="text/css" rel="stylesheet"></head>
<body>
<h2>Console UI</h2>
<p>There is a console based application provided by Symbian Unit Test Framework which is used to execute test cases.</p>
<p>filename: <br />
symbianunittest.exe</p>
<p>allowed arguments:<br />
-tests|t=<dllfilename1,dllfilename2,...><br />
-cases|c=<case1,case2,...><br />
-alloc|a<br />
-help|h<br />
-output|o=<html|xml|txt><br />
-timeout|to<br />
-noprompt</p>
<p>each option has a short term form such as -h is the short term form of -help.</p>
<p>-help/-h : print help message (the same effect as run symbianunittest.exe without any parameter)<br />
Example : symbianunittest -help<br />
<br />
-tests/-t : specify the test dll files which include the symbian unit test cases, seperated by ‘,’. <br />
Example : symbianunittest -tests=testdllfilename1,testdllfilename2,testdllfilename3<br />
<br />
-cases/-c : specify which test cases should be ran during the test procedure. the names of the test cases are seperated by ‘,’. (optional)<br />
Example : symbianunittest -tests=testdll -cases=testcasename1,testcasename2,testcasename3<br />
<br />
-timeout/-to : set the time out value for test execution, 30 secondes by default, 0 for never timeout. (optional)<br />
Example : symbianunittest -tests=testdll1,testdll2,testdll3 -to=3<br />
Set time out to 3 seconds. <br />
<br />
-output/-o : set the output format, default is html. Test result file is stored in c:\sut. <br />
Example : symbianunittest -tests=testdll1,testdll2,testdll3 -to=3 -o=xml</p>
<p>-alloc/-a : Memory allocation failure simulation. (optional)<br />
Example : symbianunittest -tests=testdll1,testdll2,testdll3 -to=3 -o=xml -alloc<br />
<br />
-noprompt : perform a quiet test for unit test execution. (optional)<br />
Example : symbianunittest -tests=testdll1,testdll2,testdll3 -to=3 -o=xml -alloc –noprompt</p>
</body>
</html>