Store Command not working!! any replacement

95 views
Skip to first unread message

hne...@gmail.com

unread,
Jan 6, 2015, 9:03:40 AM1/6/15
to xeb...@googlegroups.com
Hi
I'm new to Xebium.
I'm migration my selenium tests to Xebium
but 'store' command is not working
i used storeEval instead but i have some problems with it like this scenario:

| $currentenvironment= | is | storeEval | on | "/" |
| $regURL= | is | storeEval | on | "${currentenvironment}registration/Register.jsp" |

the second command is not working.
I've also tried:

| $regURL= | is | storeEval | on | ${currentenvironment}+"registration/Register.jsp" |

and this:
| $currentenvironment= | is | storeEval | on | "/" |
| $regURL= | is | store | on | ${currentenvironment}registration/Register.jsp |  ----------> error: currentenvironment is not defined

but it's not working either?
any body can help me with this?
i would be really happy if someone explain me how xebium handels selenium like variables?
thanks!



dennie...@gmail.com

unread,
Jan 7, 2015, 1:45:57 AM1/7/15
to xeb...@googlegroups.com, hne...@gmail.com
Hi,

Try it with storeText or storeValue.

Dennie.  

Cirilo Wortel

unread,
Jan 7, 2015, 2:14:58 AM1/7/15
to xeb...@googlegroups.com
Just some clarification, is it the location (the url) you’re trying to store? Can you elaborate on what the example is expected to do?

I think storeEval is mostly used for storing the result of an evaluation, so Dennie’s suggestion to use storeText or Value might be a good guess, depending on what you’re trying to accomplish.

The error says that the current environment variable is not defined. Is that set as a system variable or as a local fitnesse variable? Don’t know if that is relevant anyway.

regards,

Cirilo
--
You received this message because you are subscribed to the Google Groups "Xebium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xebium+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

duyc...@gmail.com

unread,
Aug 7, 2015, 10:31:35 AM8/7/15
to Xebium, hne...@gmail.com
Try this

|script              |selenium driver fixture                                    |
|start browser       |firefox|on url         |http://www.google.nl/              |
|ensure              |do     |open           |on|/                               |
|$currentenvironment=|is     |storeExpression|on|/                               |
|$regUrlSuffix=      |is     |storeExpression|on|registration/Register.jsp       |
|$regURL=            |is     |storeExpression|on|$currentenvironment$regUrlSuffix|
|Stop The Browser    |scenario                                                   |


Op dinsdag 6 januari 2015 15:03:40 UTC+1 schreef hne...@gmail.com:
Reply all
Reply to author
Forward
0 new messages