Comment #6 on issue 154 by [email protected]: IronPython compatibility
http://code.google.com/p/robotframework/issues/detail?id=154

I have to run Robot Framework 2.1.2 (RF) with IronPython 2.6 final. We have done test automation of WEB aplication succesfully with SeleniumLibrary 2.2.2. For WIN32 we have used 'pyWinAuto'. I use HTML-Format with Winword because of the gigantic documentation and commentation posibilities. Much thanks for building such a good
framework.
I must do more test automation with Windows-GUI's (WIN32, WPF, Windows Forms, etc.). But now under .NET we will/must switch to MS UI Automation (avaiable
= .NET 3.0 NS:
System.Window.Automation).

I have done the following efforts to get RF running with IronPython:

1. Installed IronPythton 2.6 succesfully

2. I have tryed to Install RF with robotframework-2.1.2.win32.exe (once more). It will always install to the (old) Python 2.6 directorys because of Registry-Values.
Installation stopped.

3. Renamed the Reg-Key for Python (so it is no longer seen!). Install for RF will not let install to alternative free location. Install stopped because of no go.

4. Reg-Key for Python rerenamed and patched to point to Installation from
IronPython. Next try to install with robotframework-2.1.2.win32.exe crashed!.

5. Manually copied the RF things below/and into the IronPython installation (to the same points as in python). All test automation is running, but at the end, preparing
the HTML-Output from XML-Output failes.

6. I've done all advices from Janne in the Issue 154. In point 2. the file should read 'expat.py' instead of 'expat'. In point 4. I had no IRONPYTHONPATH. Therefore I copied 'pyexpat.py' to the lib dir and created a new IRONPYTHONPATH environment
variable with this lib path.

Now the creation of the HTML-Output failes (in a other way) with following console
output (ending):
----------------------------------------------------------------------------------
Output:  d:\eigene_dateien_wolfram\swtest\patools-test\winxp\tx_2009
\datentraeger\tests\01_contentsversions\results\output-20100127-150115.xml
[ ERROR ] Resolving variable '${suite.critical_stats.failed}' failed: IndexError:
Der Index war außerhalb des Arraybereichs.

Try --help for usage information.
---------------------------------------------------------------------------------

The report output file was created but interruoted after the following contents:
---------------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Expires" content="Mon, 20 Jan 2001 20:01:21 GMT" />
<meta name="generator" content="Robot 2.1.2 (Python 2.6.0 on cli)" />
<style media="all" type="text/css">
  /* Background color (green or red) */
  body {
--------------------------------------------------------------------------------

I think it's only a little bug because of the difference of the involved software
pakages:
Robot Framework 2.0.4 => 2.1.2
IronPhython     2.6.1 => 2.6.10920.0 final on win32
.NET            2.0.50727.1433 => 2.0.50727.3603

I give You such a detailed report, because I think I'am not the one and only, who is interested in keyworddriven testautomation with RF and the newer MS UI Automation Layer to automate WIN applications regardless of the type of MS UI framework they
use.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply via email to