Skip to content

Redmine - problems to import stories #6

Description

@MauroAndreFlores

I'm testing the integration of jbehave with redmine.
I'm able to read a specific story:

    String text = loader.loadResourceAsText("http://localhost/redmine/projects/my-project/wiki/i_can_toggle_a_cell");

But when I try to read all the stories to the file system:

    ResourceImporter importer = new ImportToFilesystem(indexer, loader, targetPath, targetExt);
   importer.importResources("http://localhost/redmine/projects/my-project/wiki");

I get the following exception:

Exception in thread "main" org.jbehave.core.io.InvalidStoryResource: Invalid story resource for http://localhost/redmine/projects/apmjava-des/wiki/Wiki
Caused by: java.lang.IllegalStateException: Not a JSON Object: null

Probably I'm not publishing the set of stories in redmine correctly. I'm creating one wiki page for each story. The format is plain text. I haven't found any example.

Regards. Mauro.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions