xebia/Xebium — Issue #39: Xebium-Selenium formatter does not convert variables correctly
Author: cwortel
Created: 2012-01-29 20:08:37+00:00
State: open
Labels: bug

When a script is recorded that uses variables the conversion is not always correct. In the exacmple script below in the last "waitForText" it uses both ${myVariable} as well as $myVariable. The translation should not use accolades, FitNesse interprets those as FitNesse variables and will give a "variable not defined error":

| script |
| start browser | firefox | on url | http://www.google.nl/ |
| ensure | do | open | on | / |
| ensure | do | type | on | id=lst-ib | with | xebium |
| ensure | do | click | on | name=btnG |
| $myVariable= | is | storeText | on | css=em |
| ensure | do | clickAndWait | on | link=Xebium - Selenium from FitNesse |
| ensure | do | echo | on | $myVariable |
| ensure | do | open | on | / |
| ensure | do | type | on | id=lst-ib | with | $myVariable |
| ensure | do | click | on | name=btnG |
| ensure | do | waitForText | on | link=${myVariable} | with | $myVariable |
| stop browser |