New APIs
_focusWindow()
Brings the browser window into focus. This is useful while taking screenshots or using native events.
_takeScreenShot()
Takes a screenshot of the entire screen and adds it to the logs.
_focusWindow();
_takeScreenShot();
Automatically rerun failed scripts
Sahi can create a suite of failed scripts and trigger it at the end of a suite run.
Refer to “Rerunning failed scripts automatically” section here
Trigger testcases from a web interface
We have released the first version of the web based interface for running Sahi scripts.
The web based testrunner allows us to easily trigger testcases on a remote machine running Sahi.
More details here: Web based Testrunner
Syntax highlighting on Evaluate Expression box and Script Editor
Syntax highlighting helps easily see script errors and match brackets in the Evaluate Expression box and Script Editor.
Encode proxy passwords in userdata.properties
Since proxy passwords can be sensitive, we have enabled simple base64 encoding for masking passwords in userdata.properties
Usage:
ext.https.proxy.auth.encrypted=true
ext.https.proxy.auth.password=encrypted_password
You can base64 encode strings here: /demo/php/base64.php
Added missing mx and spark components in Sahi Flex Library
We added support for missing classes from the mx and spark packages
Show custom fields in-suite reports
Look at Custom Fields section in Sahi Pro Reporting
Use Properties files when connecting to database
Sometimes it is necessary to pass more than just a username password when making a connection to a database.
The _getDB API now can take a Properties file with extra parameters. More details: _getDB