2 sheets tagged with "testing":

Test Driven Development of Spreadsheets

The RunWorkbook function allows you to load up Resolver One spreadsheets (.rsl files) from IronPython code. One use of this is for embedding the Resolver One calculation engine in .NET / IronPython applications without the user interface.

This example accompanies a Resolver Hacks article showing how we can use the Python testing library unittest in conjunction with IronPython and RunWorkbook to do Test Driven Development (unit testing) of spreadsheets.

This spreadsheet was created for the Resolver Hacks website, and not by Resolver Systems.

08 March 2009. Tagged with IronPython, resolverhacks, RunWorkbook, testing

Resolver One and WatiN - Web page automation and testing

This is a simple example of how to use the new WatiN 2.0 library in Resolver One. WatiN can be used to automate testing of webpages in Internet Explorer, and version 2.0 has partial support for Google Chrome and Firefox.

You basically use WatiN to create a script of what you want to do on a webpage (ie: click, type, browse to...). This example takes a list of search terms and compares how many results are provided by Google, Bing, and Yahoo.

This is a simple task, but WatiN can be used for much more advanced automation on complex sites even including AJAX webpages. For a more complex example, see the link below for an IronPython script that downloads a list of incoming and outgoing call data from the Vonage website.

NOTE: if you are using Windows Vista with IE7, you will need to uncheck the "Enable Protected Mode" box for the Internet Zone on the Security tab of Internet Options before Watin will work. Otherwise, IE7 will open two windows (one blank, and one for Google) and then give a timeout error. Temporarily disabling Protection Mode and then restarting the browser will allow the sample to run. This error does not occur in IE8 or on Windows XP. See link below for more information.

30 June 2009. Tagged with automation, testing, WatiN

<< Resolver Exchange