i'm in a bit of a dilemma here and/or cant see other options at the moment
I know how to call a fixture method that stores an object and returns the object with predefined parameters
|$car=|create Test Car |
I know how to cal a fixture that uses setters and in that way, has flexible use of fields - no predefined parameters
!|Car Fixture |
|ContactEmailadres |ContactTelefoonnummer|
|klaasJanHotmail.com|0612345678 |
This last one comes close to the perfect scenario, however I want to store or return the object or at least one field (id) for later use in the test.
What i thought of so far and got stuck in
Use Symbol
getEnvironment().setSymbol("carID", car.getID()); //Dunno if this works because I was not succesful so far in calling it in the code after the script
Try to use setters and then method Haven't found a way to chain these methods, tried variants like below
!|Car Fixture | |
|ContactEmailadres |ContactTelefoonnummer|create Test Car |
|klaasJanHotmail.com|0612345678 |$car=
So basically flexible use of parameters and a return type is the goal and I guess the inexperience with the Fitnesse syntax is the issue in this!
Thanks in advance!