Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noptor: restart browser #316

Open
wants to merge 4 commits into
base: noptor
Choose a base branch
from

Conversation

tsaleksandrova
Copy link
Contributor

based on #315

@@ -2,6 +2,19 @@

var ConfigParser = require('./configParser').ConfigParser;

/**
* properties for parallelization and multi browser support:
Copy link
Contributor

@maximnaidenov maximnaidenov May 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is to support only maxInstances e.g. config.maxInstances:5 would mean that up to 5 parallel sessions are started that drain the execution queue. The queue contains the list of spec.js files.

// called (e.g. when fit is used)
this.startTime = new Date();

browser.plugins_.addPlugin({
Copy link
Contributor

@maximnaidenov maximnaidenov May 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is to have a single flag, config.restartBrowserBetweenSpecs: true ( for consistent naming with config.specs and config.suites params) that will be handled in the TaskRunner. And if set, will restart the browser before taking the next task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants