Git Product home page Git Product logo

Comments (3)

fhoeben avatar fhoeben commented on May 24, 2024

Explicitly setting headers is not currently a feature supported by BrowserTest (as real web browsers also don't offer this).

What is the test setup/flow you want to use this for. What I sometimes do is: log in via a SuiteSetUp and all pages in that suite can use browser test as that logged in user, logging out is done in the SuiteTearDown.

Since by default we don't kill browser windows, delete cookies, clear local storage or anything like that, between invocations of BrowserTest the security context does not disappear (unless you remove it). So I would expect that a new "open url" line keeps the same context as existed before.
Having said that I assume the security context is kept using cookies, not explicitly via headers.

This behavior of 'open url' is what users normally experience when they click on a link for applications:

  • if they are logged in: the page is opened immediately
  • if they are not logged in the page is not opened (if it is a 'nice' application they are taken to a login screen and after successful login the page is opened for them)

from hsac-fitnesse-fixtures.

violinner avatar violinner commented on May 24, 2024

Thank you for your response!
On a login page, when the value for "|enter|${value}|as..." begins with a
capital letter and ends with a number, it does up as a link to a non-existent page.
Can I escape this?

Thanks
Joel

from hsac-fitnesse-fixtures.

fhoeben avatar fhoeben commented on May 24, 2024

Try using !- and -!, for instance: !-MyUserName21-!, see http://fitnesse.org/FitNesse.FullReferenceGuide.UserGuide.FitNesseWiki.MarkupLanguageReference.MarkupLiteralText

from hsac-fitnesse-fixtures.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.