-
Notifications
You must be signed in to change notification settings - Fork 61
How to define variables for scenarios on a test page? #160
Comments
Hey, I actually have created an issue in the Fitnesse project for a similar I can't remember quite how I worked around it. One question, is the idea you're aiming to reuse identical test pages with |script| For my initial issue: On Mon, Mar 7, 2016 at 2:47 PM, pmmvr [email protected] wrote:
|
Hi, Thanks for your answer. I found a workaround. In my OP i wrote:
Which was a wrong and premature assumption on my side.
In the test page I add the following variables:
And the sript as:
Which results in:
So now i can create different test-pages for different products or simply change the variables on the test page accordingly to quickly run new tests. |
excellent ;) On Wed, Mar 9, 2016 at 10:33 AM, pmmvr [email protected] wrote:
|
Hi,
I have a number of generic test scenarios that contain variables. I now want to combine these scenarios in test pages to create user stories. The definition of the variables will be different in each test page.
When I define the variables in the ScenarioLibrary page it works flawless. However, when I define the variables in a test page and create a script combining a number of scenarios, Fitnesse is unable to grab the definition of the variables...
I am aware it's possible to use variables by placing a variable name after the scenario logical name, calling the variable in the scenario and then defining this variable again in the test page. Like this in ScenarioLibrary
and this in the test page
but this seems to work only for 1 variable ...
Does anyone have a tip or a work-around to get this working?
Thanks.
The text was updated successfully, but these errors were encountered: