Oleg Ivanov
Oleg Ivanov

Reputation: 181

How to get PAGE_NAME value in FitNesse test?

I see that there are *PAGE_NAME* and *PAGE_PATH* global variables but I can't find a way to get their value in neither Fit pages nor Fit SetUp / SuiteSetUp pages - I tried obvious ways, all came back as "undefined variable".

Is there any other way to get a current page's/test's name?

any help would be greatly appreciated

thanks! Oleg

Upvotes: 1

Views: 1054

Answers (1)

Ed Harper
Ed Harper

Reputation: 21505

It's not completely clear from your question what you've tried, but based on the FitNesse user guide, variable names need to be escaped like so: ${name}.

Including ${PAGE_NAME} or ${PAGE_PATH} in a test or suite works OK in my local FitNesse.

Upvotes: 2

Related Questions