Currently we have an automation framework built using cucumberjs/protractor. As is now, all of our tests run in one browser instance.. this causes issues with our mocking system as it causes instabilities as more and more tests run. What is the easiest solution to make cucumberjs tests kick off a fresh browser instance at every new feature file? Would it include configuring the hooks.js?
Restarting browser after every feature file cucumberjs
951 Views Asked by Tree55Topz At
1
There are 1 best solutions below
Related Questions in SELENIUM-WEBDRIVER
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Fail Upload file in Selenium webdriver using Robot class
- How do I use DataProvider with Apache POI
- I am not able to get Exact frame and not able to select exact element using selenium web drive
- Selenium C#: Store element's position on graph as a variable
- Selenium webdriver for handling dynamic ckeditors
- Easy to use multi browser automation tool for record, parameterize, debug, batch run of suites and results report
- Not able to select option from dropdown box in an android mobile application
- What can cause `UnreachableBrowserException: Could not start a new session`?
- Click on the 'compose' button in gmail inbox page
- python - selenium change frame not working
- How to select value from dropdown and double click on same selected item in selenium webdriver.?
- Selenium Firefox webdriver does not adopt profile
- Cannot assign an inst variable in Switch "--user-data-dir" in Selenium Wedriver Chrome
- Phantomjs fails when Protractor is run with selenium hub
Related Questions in PROTRACTOR
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Getting the button text in Protractor
- MSSQL - Nodejs - Undefined is not a function issue
- Load additional CONFIG file with values
- Protractor, login to asp,net MVC login page, wait for default page then , redirect to angular page and do tests....how?
- Phantomjs fails when Protractor is run with selenium hub
- Protractor Test Result variations
- How to use Jasmine and CucumberJS with Protractor
- Protractor : Failed: Object has no method 'getText'
- Protractor - How to get first or last CHILD value
- Protractor : Refreshing browser instance between testsuites
- Protractor e2e tests with MEANJS navigation
- Protractor: Multiple browser instance tests fail where Single Instance tests pass
- cucumber-js and Chai how to expect if element with given selector exist in DOM
- How to use isElementPresent/isPresent inside ng-repeat in protractor?
Related Questions in HOOK
- How to make Homeslider Banner work in custom hook location
- Customize Liferay search portlet
- Modify files and commit after Branch creation in GIT via Hook
- Removing a Wordpress action added from a Plugin and than adding a new action in place of that
- In WHMCS user can login with every wrong or right password
- To Hook Web Content Search Portlet
- Overriding class signature in java
- Sonata Admin: Prevent a persist for a specific condition
- Is it posible to hook redis before key expired
- Redis hooking (publish-subscribe) under stress tests - performance under load
- Are static members in XPosed hook classes shared between processes?
- Log-in Portlet Hook
- Apache Subversion pre-commit to restrict files
- Mercurial list files from changegroup
- Taking Screeshot of extern Window which have an OpenGL ES Window inside
Related Questions in CUCUMBERJS
- cucumber-js and Chai how to expect if element with given selector exist in DOM
- Setting up test data for full-stack testing of a single page web application and its back-end
- Browser switch handle Phantomjs Issue
- Failing simple cucumber.js + zombie tests
- Unable to delete mongoose collection within Cucumber-JS Step
- E2E test code architecture
- Restarting browser after every feature file cucumberjs
- NightwatchJS+Cucumber cannot locate via xPath
- Protractor config file: cucumberOpts tags not taken individually or ignored
- Cucumber tests. Get step regexp dynamically
- cucumber click dialog remove
- Assert is hanging instead of failing CukeJS test
- Documented Cuke.JS doesn't seem to work
- Protractor, Cucumber and chai as promised: When chai assertion fails
- grunt-cucumber not running step_definitions
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Create a before hook in your hooks.js:
http://www.protractortest.org/#/api?view=ProtractorBrowser.prototype.restart