summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@nokia.com>2011-05-12 11:41:26 +0200
committerLeena Miettinen <riitta-leena.miettinen@nokia.com>2011-05-12 11:41:26 +0200
commit97d9365514f43fc574be2de1580dca33f1124761 (patch)
tree95c6564416abfb87147c02d04ba8e5fa60d84ffd
parentba7053c85185338aaf36a397b6b8c5a44f1d062d (diff)
Doc: updates to scripting
Reviewed-by: owolff Reviewed-by: Rainer Keller
-rw-r--r--doc/images/qt-simulator-scripting.pngbin15607 -> 21999 bytes
-rw-r--r--doc/simulator.qdoc20
2 files changed, 16 insertions, 4 deletions
diff --git a/doc/images/qt-simulator-scripting.png b/doc/images/qt-simulator-scripting.png
index b224ac5..455bd97 100644
--- a/doc/images/qt-simulator-scripting.png
+++ b/doc/images/qt-simulator-scripting.png
Binary files differ
diff --git a/doc/simulator.qdoc b/doc/simulator.qdoc
index 5beb17c..5ac7400 100644
--- a/doc/simulator.qdoc
+++ b/doc/simulator.qdoc
@@ -784,7 +784,7 @@
open an application in Qt Simulator. Place the script in the \tt{scripts/autostart/}
folder to run it automatically when Qt Simulator starts.
- You can then use the \gui{Device Control} dialog to change the default
+ You can then use the Qt Simulator views to change the default
settings according to your test cases. To run the same tests repeatedly
or to test complicated sequences of events, create scripts and place them in
the \tt{scripts} folder.
@@ -794,23 +794,29 @@
Example scripts are located in \tt{scripts/examples/}.
To open the folder that contains the scripts in a file browser,
- select \gui {Open Folder}.
+ select \gui {Show Folder Content}.
+ To locate and run scripts in other folders, select \gui {Run Other Script}.
\section1 Running Scripts
To run a script:
- \list 1
+ \list
\o Click the \gui{JS} quick access button to
bring up a list of scripts in the \tt{scripts/favorites/} folder.
\o Double-click a script in the \gui{Scripting} tab that shows
- the scripts in the \tt{scripts/} folder.
+ the scripts in the \tt{scripts/} folder, or select \gui {Run Selected
+ Script}.
\o Place a script in the \tt{scripts/autostart} folder to run it when Qt Simulator
starts.
+ \o Select \gui {Run Other Script} to run scripts from any folder on the
+ development PC or on a network resource. The script is automatically run
+ when you select it.
+
\o Add the \c {-runscript <script file>} parameter to a call of the Qt Simulator application
on the command line to trigger the execution of a script in the currently running Qt Simulator
instance externally.
@@ -821,6 +827,12 @@
To pause or resume a script, select it and click \gui{Pause}. To abort a script,
select it and click \gui{Abort}.
+ \section1 Editing Scripts
+
+ To edit a script in a text editor, select it and then select
+ \gui {Edit Script}.
+
+ \note You have to set a default editor for .qs files in your system.
\section1 Function Reference