Comments (7)
I think this can be closed as all helpers have restart: false
option which can be used to reuse browser session
from codeceptjs.
Right now we don't provide any kind of nesting.
And there is no something like that in nearest plans. One feature per file for now.
from codeceptjs.
Hmm. That's kind of disappointing, particularly since Mocha does support nesting suites.
Here's my use case. Right now, with that I.amOnPage('/');
in Before()
, Codecept appears to be bringing up a separate browser instance for every test. That's taking around 15s or so to execute a test.
I'd really like to be able to use a single Webdriver / browser instance for a series of tests. Beyond that, I'd like to be able to, say, run an initial test verifying that logging in works, then run additional tests after that that require having successfully logged in.
Again, I'm very new to actual automated testing and to Codecept, but that seems like a pretty useful scenario to support.
from codeceptjs.
Here's my use case. Right now, with that I.amOnPage('/'); in Before(), Codecept appears to be bringing up a separate browser instance for every test. That's taking around 15s or so to execute a test.
Thanks for the idea. We will add option to reuse instance of a browser.
Beyond that, I'd like to be able to, say, run an initial test verifying that logging in works, then run additional tests after that that require having successfully logged in.
This concept is somehow harder to implement. As you will probably have LOTS of tests where user is logged in (and probably in different files) and one test for a login. Probably this will require something like dependency tree for tests.
But in the end, I think that you don't need nested structures for this kind of tests. Yes, mocha support them, but CodeceptJS is about scenario-driven testing so it's better to keep it linear.
from codeceptjs.
Hello markerikson
I had the same issue, I hate waiting for the browser to open and close. What I did was that I created a script that concatenates many files into one and puts all my different file test into a single test all contained in the same Scenario(), this way I can test memory leaks in my app on the browser.
So far it works great. I can share you my script if you want.
from codeceptjs.
Would be nice to see your script. I wonder how much time you're saving doing it this way?
from codeceptjs.
@markerikson That may interest you #167
from codeceptjs.
Related Issues (20)
- There is no support for addScriptTag HOT 2
- [FR] - implementing the request interception for ppt helper
- Playwright to codecept locator conversion HOT 3
- Playwright doc for grabTrafficUrl malformatted
- codeceptjs run-workers X can do with sequencing improvements HOT 2
- run-multiple reporting of failed steps not working HOT 4
- run-multiple execution creates output sub folders with alphanumeric value instead of browser names HOT 9
- runOnAndroid/runOnIOS blocks are stuck after upgrading CodeCept from 3.4.1 to 3.5.15 and Appium From 1 to 2. HOT 1
- quickstart instructions crash HOT 5
- Not able to do file download validation with run-multiple execution HOT 1
- I.fillField and I.see is not working when we do the cross browser testing HOT 2
- While using run-multiple for parallel execution, method I.dontSeeElement gives error Cannot read properties of undefined (reading 'react') HOT 7
- in BDD or Gherkin mode, the `After` is not synchronous where next scenario starts (while the `After` is still executing) HOT 5
- It takes a long time to finish the process after testing
- Facing issues in fetch the element with data-testid HOT 6
- In codeceptJS version 3.6.0, an error occurred when using the pause() method HOT 2
- Scenario and step timeouts are not working as expected HOT 1
- Problem with launching test with an exact tag
- `I.waitForURL()` does not fail the test when its timeout happens
- Healer priorities and steps are not respected
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 codeceptjs.