JBehave

URL-based StoryLoader

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 3.0
  • Component/s: Core
  • Labels:
    None
  • Number of attachments :
    0

Description

As a story developer, I want to load stories via URLs, not necessarily in the classpath.

This can be used, e.g. to retrieve stories from wikis.

Activity

Hide
Christian Blavier added a comment -

Hi, could you give me some advice about the way to implement such a feature ? (since I have no clue about the way jBehave is working)
A kind of ScenarioFactory that fetches scenarios from http ressources

Thanks

Show
Christian Blavier added a comment - Hi, could you give me some advice about the way to implement such a feature ? (since I have no clue about the way jBehave is working) A kind of ScenarioFactory that fetches scenarios from http ressources Thanks
Hide
Mauro Talevi added a comment -

JBehave is designed to be component-oriented with clear interface-implementation separation.

For the case at hand we'd need to provide an implementation of the ScenarioDefiner interface. You can start from the ClasspathScenarioDefiner as a guideline for the URLScenarioDefiner. Also you should look at the ScenarioFileLoaderBehaviour (which should be renamed to ClasspathScenarioDefinerBehaviour).

Any questions, just post it on the mailing list and we'll help you.

Thanks

Show
Mauro Talevi added a comment - JBehave is designed to be component-oriented with clear interface-implementation separation. For the case at hand we'd need to provide an implementation of the ScenarioDefiner interface. You can start from the ClasspathScenarioDefiner as a guideline for the URLScenarioDefiner. Also you should look at the ScenarioFileLoaderBehaviour (which should be renamed to ClasspathScenarioDefinerBehaviour). Any questions, just post it on the mailing list and we'll help you. Thanks

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: