ScriptingThe Qt Simulator JavaScript interface enables you to automate recurring sets of changes or to simulate a continuously changing environment. Create a script (.js or .qs) that sets the device to its desired state when you open an application in Qt Simulator. Place the script in the scripts/autostart/ folder to run it automatically when Qt Simulator starts. You can then use the Device Control dialog 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 scripts folder. Place you favorite scripts in the scripts/favorites/ folder. Example scripts are located in scripts/examples/. To run a script: The Active scripts field shows a list of currently active scripts. To pause or resume a script, select it and click Pause. To abort a script, select it and click Abort. The following objects and functions are added to the common JavaScript global scope: [Previous: Checking Application Layout] [Next: Adding New Device Models] © 2008-2010 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy X
|