|
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>Creating STF project</title> |
|
6 <link href="../../book.css" type="text/css" rel="stylesheet"> |
|
7 </head> |
|
8 <body> |
|
9 |
|
10 <h2>Creating STF project</h2> |
|
11 <p>To create an STF project, in Carbide do the following:</p> |
|
12 <ol> |
|
13 <li>Select <b>File > New > Other</b>.</li> |
|
14 <li>Select <b>Carbide Extensions > Test Frameworks > Symbian Test Framework</b> and click <b>Next</b>, as shown below:<p><img src="screenshots/creating_stf_project.png" alt="Sample of creating STF project"></p></li> |
|
15 <li>Set the project name, path and builder, and click <b>Next</b>, as shown below:<p><img src="screenshots/creating_stf_project1.png" alt="Set project name, path and builder"></p></li> |
|
16 <li>Select one or more Symbian SDKs to be used as the build configuration, as shown below:<p><img src="screenshots/creating_stf_project2.png" alt="Select SDK"></p></li> |
|
17 <li>Set the test class properties:<br><p><img src="screenshots/creating_stf_project3.png" alt="Set test class properties"></p><p>then click <b>Next</b>.</p></li> |
|
18 <li>Define the test classes and methods. You can <b>Add</b>, <b>Edit</b>, or <b>Delete</b> them, or <b>Bind</b> them with headers or libraries: <br><p><img src="screenshots/creating_stf_project4.png" alt="Define classes and methods"></p> |
|
19 <p>Add method: <br><p><img src="screenshots/creating_stf_project4-1.png" alt="Add methods"></p> |
|
20 <p>Edit method: <br><p><img src="screenshots/creating_stf_project4-2.png" alt="Edit methods"></p> |
|
21 <p>Delete method: <br><p><img src="screenshots/creating_stf_project4-3.png" alt="Delete methods"></p> |
|
22 <p>Bind: <br><p><img src="screenshots/creating_stf_project4-4.png" alt="Bind"></p></li> |
|
23 <li>Click <b>Finish</b>.<p>The test class is created and can be viewed in the Project Explorer. </p></li> |
|
24 </ol> |
|
25 |
|
26 <h3><a name="Creating test class"></a>Creating test class</h3> |
|
27 <p>To create an STF test class for an existing project, right-click the project, then select <b>Test Frameworks</b> > <b>Generate STF Class...</b>. Then follow steps 3 to 7 shown above to finish the creation.</p> |
|
28 <h5>Related concepts</h5> |
|
29 <ul> |
|
30 <li><a href="../concepts/test_class.htm">Test classes</a></li> |
|
31 </ul> |
|
32 |
|
33 <div id="footer">Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
|
34 License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.</div> |
|
35 </body> |
|
36 </html> |