Comments (4)
Hey,
Not sure I understand the question. Personas are essentially browser sessions with the ability to hold some values. So switching personas back and forth will start or re-use a browser session.
from behaving.
Is that really the only way they're meant to be used? It's not our approach.
We define a persona for each test user in the system, with their credentials, email, etc, and then each test uses "Given X as the persona" to have the login details ready. There's no inherent tie to the browser session, although in a lot of cases they'll be correlated.
from behaving.
Is that really the only way they're meant to be used? It's not our approach.
We define a persona for each test user in the system, with their credentials, email, etc, and then each test uses "Given X as the persona" to have the login details ready. There's no inherent tie to the browser session, although in a lot of cases they'll be correlated.
Well isn't that exactly the case behaving covers? In each test when you say "Given Foo as the persona" you will start a session for Foo. All cookies, session storage whatever will be tied to Foo. If you happen to start another session for "Bar" in the same test it will not carry the credentials of Foo.
from behaving.
Well, we do have tests that try logging out as one user and then logging in as another.
This has primarily been a nuisance when we've had to manually create a Browser instance due to version conflicts between Selenium vs Behaving vs Splinter vs Python, though, so maybe it won't really be an issue longer term.
from behaving.
Related Issues (20)
- In selenium transitions fail to run with multiple personas.
- Decoding mail payload HOT 1
- Are you planning to support selenium 4? HOT 7
- Add more debugging info on failures HOT 1
- Bug: Open new window fails HOT 1
- Project `Behave` badge? HOT 1
- Can't find a Behaving version that works on Python 3.9 HOT 2
- 'I press' step does not escape single quotes within text
- "I fill in" step cannot be used with text containing double quotes
- phantomjs parameters? HOT 3
- Jinja templating for data and parameters HOT 3
- "Contributing" link in README is dead HOT 1
- "Splinter" link in README is dead. HOT 1
- Scenario Outline and Example Tables HOT 2
- Documentation is not available HOT 1
- Provide a mechanism to override predefined steps HOT 2
- missing email configuartion HOT 6
- mailmock not compatible with python 3.6 HOT 2
- How to use Headless Browsers? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from behaving.