Hi, Here are my experiences with GivenScenarios. I have tried them only in eclipse and they suck :(
If you have set eclipse to build classes away from the source (say bin dir) then they do not work... The GivenScenario test files are searched in the classpath, so you need to add them to classpath. But if you build classes away from sources then you can't reasonably add the source folder to classpath. So I had to manually copy of the scenario text files to my bin folder. I hope there is a better way to do it, I guess they work better in automated build. Personally, I would prefer that the givenscenarios files are searched relative to the current scenario file. - Hitesh [http://hitesh.in/] 2009/11/12 nino martinez wael <[email protected]>: > Hi > > Are there any examples on givenscenarios > (http://jira.codehaus.org/browse/JBEHAVE-126). > > We are using the UnderscoredCamelCaseResolver and PatternScenarioParser, but > im not sure what to put in path to scenarios and what the scenario should be > called. Are it supposed to be the name of the .scenario file or? > > Also the usecase we have would be to try to factor out common beginings of > scenarios. But the begining scenario itself might not be able to pass the > test what should be done there.. And finally are the scenarion steps/text > just suffixed at the scenario using the given keyword, that would hit the > spot for us. > > > regards nino > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
