The tests which I have been building are designed to run on multiple servers testing various stages of the development and deployment process. Therefore one of the early things I did was change the base path of the parent object in the repository to use a variable instead of a fixed URL. It went from "/dom[@domain='www.testbox.co.uk' and @state='complete']" to "/dom[@domain=$testdomain and @state='complete']". So this way I can run it from any box. Overtime I have recorded additional actions and forgot to change this variable back to the path so I do have multiple base objects in the repository but I always change them to use the variable instead of the URL. One day I'll tidy those up.
Now, as you can see in the picture below the module 'FC_Select_DialledNumber' has one bound and one unbound variable. The bound variable is the dialled number which I am selecting and the unbound variable is the testdomain. The module itself now only contains a User Code action which contains the recorded actions surrounded with a bit of intelligence. hence why the module thinks it wants the testdomain bound as it's using repository items such as: repo.website.mainlist.
If I run it as it currently stands it all appears to work correctly. I have even tried running it on muliple servers so the testdomain is different and again, no problem. This issue arrises if I try to bind the variable. When I do that I get an error that states:
Does anyone have any idea for why this behaviour is occuring and if there is a way to resolve it? Like I say, it appears to work if it is unbound but it looks untidy!Failed to set value 'www.testbox.co.uk' to variable 'testdomain'.
Field or property not found or not writeable.