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