nightwatch-cucumber | Cucumber.js plugin for Nightwatch.js | Functional Testing library

 by   mucsi96 JavaScript Version: 9.1.3 License: MIT

kandi X-RAY | nightwatch-cucumber Summary

kandi X-RAY | nightwatch-cucumber Summary

nightwatch-cucumber is a JavaScript library typically used in Testing, Functional Testing, Cucumber applications. nightwatch-cucumber has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can install using 'npm i nightwatch-cucumber' or download it from GitHub, npm.

[DEPRECATED] Cucumber.js plugin for Nightwatch.js.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              nightwatch-cucumber has a low active ecosystem.
              It has 243 star(s) with 78 fork(s). There are 18 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 17 open issues and 161 have been closed. On average issues are closed in 121 days. There are 19 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of nightwatch-cucumber is 9.1.3

            kandi-Quality Quality

              nightwatch-cucumber has 0 bugs and 0 code smells.

            kandi-Security Security

              nightwatch-cucumber has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              nightwatch-cucumber code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              nightwatch-cucumber is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              nightwatch-cucumber releases are available to install and integrate.
              Deployable package is available in npm.
              nightwatch-cucumber saves you 256 person hours of effort in developing the same functionality from scratch.
              It has 622 lines of code, 0 functions and 55 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed nightwatch-cucumber and discovered the below as its top functions. This is intended to give you an instant insight into nightwatch-cucumber implemented functionality, and help decide if they suit your requirements.
            • Initialize the tests
            Get all kandi verified functions for this library.

            nightwatch-cucumber Key Features

            No Key Features are available at this moment for nightwatch-cucumber.

            nightwatch-cucumber Examples and Code Snippets

            No Code Snippets are available at this moment for nightwatch-cucumber.

            Community Discussions

            QUESTION

            Using REST client in Nightwatch command queue
            Asked 2019-Mar-16 at 16:04

            I'm using Nightwatch-Cucumber based on Nightwatch.js for our tests. Ans also I use the PageObject Pattern. These tests are not only end2end tests based on Selenium but also REST API tests. For the REST tests I'm using an Atlassian JIRA REST client for Node. Now I want to combine the power of Nightwatch, including Selenium, with the power of REST. So, I want to use both technologies together and I want to integrate the REST API calls within the Nightwatch framework.

            I've tried to integrate the REST API calls within the perform() function of Nightwatch to add the REST calls to the Nightwatch command queue, but without a complete success. I have to ensure that the REST calls are completely done before executing the next Nightwatch commands. Currently the following steps after the REST calls will be execute before the REST call is completely done. But how can I solve that problem?

            This is my Cucumber Feature file:

            ...

            ANSWER

            Answered 2018-Feb-16 at 14:36

            If you have an async task that you need to run synchronously you have to use the done callback in your perform function.

            Source https://stackoverflow.com/questions/48823355

            QUESTION

            How to pass an browser env parameter for nightwatch-api formerly nightwatch-cucumber?
            Asked 2019-Jan-09 at 17:08

            Nightwatch-cucumber is deprecated and we should use Nightwatch-api as per the author.

            I have a set up where I use selenium grid with both a Firefox and Chrome nodes running waiting to be activated. I have not set any webdriver settings in my project. I am still able to run tests but it only takes the default test setting.

            How would be able to run tests specifying a browser other than the default?

            ...

            ANSWER

            Answered 2019-Jan-09 at 17:08

            As per the examples from repo, you should be able to pass it through two files (links below) which will enable you to execute them in desired browser (provided, it is configured in nightwatch.conf.js file).

            https://github.com/mucsi96/nightwatch-api/blob/master/packages/selenium-hub-example/test/server.js

            https://github.com/mucsi96/nightwatch-api/blob/master/packages/selenium-hub-example/test/support/setup.js

            Examples from Repo:

            Selenium Grid : https://github.com/mucsi96/nightwatch-api/tree/master/packages/selenium-hub-example

            Webdriver : https://github.com/mucsi96/nightwatch-api/tree/master/packages/cucumber-example

            Selenium standalone : https://github.com/mucsi96/nightwatch-api/tree/master/packages/cucumber-selenium-example

            Please accept this as answer if it helps in resolving your issue.

            Source https://stackoverflow.com/questions/54033177

            QUESTION

            nightwatch-cucumber keep browser open for testing?
            Asked 2018-Feb-12 at 18:08

            When running a single test I would like to keep the browser open after running form fills so I can debug. Is there any way to do this with nightwatch-cucumber? Thanks would be a huge help.

            ...

            ANSWER

            Answered 2018-Feb-12 at 18:08

            This isn't really a cucumber problem its a javascript problem, and I'm not a javascript expert, but I'd suggest you try putting a breakpoint before an assertion that looks at what your browser is showing.

            Normally with a Cucumber scenario you would have a THEN, that looks at the view and tests something, just put the breakpoint in there before the assertion

            Source https://stackoverflow.com/questions/48712517

            QUESTION

            Easiest way to run Selenium tests in a Docker container over Jenkins CI
            Asked 2017-Dec-20 at 20:03

            I want to execute my automated tests, written in Nightwatch-Cucumber over a Jenkins CI in a Docker container. I have a Docker image that I want to use for it.

            This is what I want to do in more detail.

            1. Start tests over Jenkins CI job
            2. On the same machine the Docker image is loaded and the related Docker container will start. This container based on a Unix OS. Also, some configuration in Docker container will be executed.
            3. Tests will be executed (from local or remote) in a headless mode via xvfb and the report will be saved on Jenkins machine.

            Over GitLab CI I've realized it over a .gitlab-ci.yml config file and it runs very good:

            ...

            ANSWER

            Answered 2017-Jul-10 at 15:11

            Check out the maintained Selenium Docker images, specifically the node flavors. It's a good place to start, whether you decide to use the containers as-is or roll your own.

            Source https://stackoverflow.com/questions/45014781

            QUESTION

            Exit nightwatch cucumber process with exit code 0?
            Asked 2017-Dec-09 at 11:10

            Is it possible to exit nightwatch-cucumber with an exit code of 0 even when the tests fail?

            Reason being, with the breaking changes you can no longer generate a cucumber report in a step, meaning you have to wait for the tests to finish, pass or fail, to generate the report.

            The problem is that teamcity sees test failures and will not progress to the next step, due to the tests failing with an exit code not equal to 0, thus not generating the cucumber report.

            ...

            ANSWER

            Answered 2017-Dec-09 at 11:10

            I suggest to run cucumber report generation from NPM instead a separate Teamcity task. See the nightwatch-cucumber docs regarding this topic.

            Source https://stackoverflow.com/questions/47457553

            QUESTION

            (node:19502) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'indexOf' of undefined
            Asked 2017-Nov-16 at 21:19

            I have integrated cucumber with nightwatch.js.

            My package.json looks like:-

            ...

            ANSWER

            Answered 2017-Nov-16 at 21:19

            QUESTION

            Generate Cucumber report after test execution with Nightwatch-Cucumber
            Asked 2017-Oct-08 at 19:27

            Until Nightwatch-Cucumber@7.3.1 the framework used Cucumber 2 and I realized my Cucumber report generation in a hook with an Event Handler directly after test execution, like:

            ...

            ANSWER

            Answered 2017-Oct-08 at 19:27

            You have to run the report generation in a separate NodeJs process. An example package.json could be the following.

            Source https://stackoverflow.com/questions/45920217

            QUESTION

            Unexpected end of JSON input when using cucumber-html-reporter with Nightwatch-Cucumber
            Asked 2017-Jul-13 at 05:29

            I use Nightwatch-Cucumber to automate my end2end tests and want to create a cucumber html report after test execution with cucumber-html-reporter, but I get an error while report generation by cucumber-html-reporter:

            ...

            ANSWER

            Answered 2017-Jul-13 at 05:18

            Try to generate cucumber html report in a separate step of test execution. For example if you are using npm script use a separate npm script to generate the report. The problem with your approach is that in Cucumber.js global After hook the report is not created yet. That's why you are getting such an error. I suggest to use a separate node.js script to run cucumber-html-reporter.

            Source https://stackoverflow.com/questions/44898676

            QUESTION

            Timeout error with Nightwatch-Cucumber and Nightwatch
            Asked 2017-Jul-12 at 15:47

            Current behavior I work with Nightwatch-Cucumber and the PageObject Pattern and I get an unexprected Error: function timed out after 60000 milliseconds.

            Expected/desired behavior All Nightwatch-Cucumber checks (like visibility checks) have to fail and no timeout problem has to occur.

            Reproduction of the problem As pre-conditions I set the default timeout (60 seconds) globally in timeout.js:

            ...

            ANSWER

            Answered 2017-Jul-12 at 15:47

            I tried debugging a little bit more. Maybe it's a bug with the Expect?

            I set my global timeout to 20 seconds:

            Source https://stackoverflow.com/questions/44943741

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install nightwatch-cucumber

            You can install using 'npm i nightwatch-cucumber' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i nightwatch-cucumber

          • CLONE
          • HTTPS

            https://github.com/mucsi96/nightwatch-cucumber.git

          • CLI

            gh repo clone mucsi96/nightwatch-cucumber

          • sshUrl

            git@github.com:mucsi96/nightwatch-cucumber.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link