testdev/ite/src/com.nokia.testfw.stf.help/html/tasks/script_editor.htm
author Johnson Ma <johnson.ma@nokia.com>
Tue, 30 Mar 2010 14:39:29 +0800
changeset 1 96906a986c3b
permissions -rw-r--r--
contribute ITE to symbian foundation

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<title>STF Script Editor</title>
		<link rel="stylesheet" href="../../book.css" type="text/css" />
	</head>
	<body>
		<h2>STF Script Editor</h2>
		<p>
			STF plug-in offers a user-friendly editor for manipulating 
			script files. The editor provides users 
			with syntax highlighting, code assistant, syntax checking and other features 
			that make working with scripts easier and more efficient.
			<br />
			<br />
			To use the STF Script Editor simply open the .cfg file in the Carbide.c++ 
			environment (<b>File</b> -> <b>Open File...</b>).<br />
			<br />
		</p>
		<p>
			The STF Script Editor will start and display the file. See the figure below for an example.
			<br />
			<br />
			<img src="screenshots/script_editor.png" alt="Script editor"/><br />
			<i>Script Editor</i><br />
			<br />
		</p>
		<p>
			As shown in the figure above, the editor offers code highlighting for keywords. For the set of 
			keywords that will be highlighted, see <a href="../references/script_keywords.htm">Script Keywords</a>.
		</p>
		<br />
		<p>
			The editor lets you fold test cases. A test case can be 
			collapsed by clicking the minus "-" sign next to the given test case.<br />
			The figure below presents a collapsed test case:
			<br />
			<br />
			<img src="screenshots/script_editor_folding.png" alt="Scriptor editor: folding"/><br />
		</p>
		<p>
			The test cases can be expanded to the previous form by clicking the plus "+" 
			sign next to the given test case.<br />
		</p>
		<br />
		<br />
		<p>
			The Outline view presents a list of test cases that the current file contains.<br />
			You can move the cursor to the selected test case by clicking its associated 
			label in the Outline view:<br />
			<br />
			<img src="screenshots/script_editor_outline.png" alt="Scriptor editor: outline"/><br />
		</p>
		<br />
		<br />
		<p>
			The editor checks the syntax of the script. If an error is found then any line 
			containing it is marked and a comment is added to the Problems window. The 
			figure below shows how the editor points to the errors:<br />
			<br />
			<img src="screenshots/script_editor_syntax_checking_errors.png" alt="Scriptor editor: error checking"/><br />
		</p>
		<br />
		<br />
		<p>
			The STF Script Editor provides users with code assistance. The suggestions of the 
			code assistant, depending on the current context, can be displayed by pressing the 
			CTRL + SPACEBAR combination on the keyboard.<br />
			The figure below shows code assistant window with suggested words 
			for the current context:<br />
			<br />
			<img src="screenshots/script_editor_code_assist.png" alt="Scriptor editor: code assist"/><br />
		</p>
		<div id="footer">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. 
		License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.</div>
	</body>
</html>