Skip to content

use "let" to extract "TEXT" body #26

@fitnesslover

Description

@fitnesslover

I am trying to extract a value from the body of html type that I specifies the RestFixture to treat as "TEXT" format. Below are the steps. However, I keep getting the error message saying "last response body cannot be parsed" in the "let" step.

!|smartrics.rest.fitnesse.fixture.RestFixtureConfig|
| restfixture.content.handlers.map | text/html=TEXT|

!|smartrics.rest.fitnesse.fixture.RestFixture|some URL |
|GET| some API | 200 |text/html |name="id" value="|
|let|id|body|name="id" value="(.*)"||

Is it the case that "let" can only extract from XML? If so, how can I get about getting the value from a html body?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions