GithubHelp home page GithubHelp logo

Comments (9)

mucsi96 avatar mucsi96 commented on September 20, 2024

The output format depends on which framework is actually running the tests. Nightwatch or Cucumber. Both contains a command line runner feature.

The latest commit with Cucumber output was https://github.com/mucsi96/nightwatch-cucumber/tree/8cf10ae2ffdc9ae3f9bbf140a8696daa119893a4. Where Nightwatch was used like an API.
The problem with this approach was that you manually need to take care of nightwatch .end function call it the last step of scenario. This function is used start the execution and then close the selenium session and browser. Also you need to manually start selenium server.

Other solution could be to run using nightwatch runner but get an output similar to cucumber. But I have no idea how to make it. :) The best would be if both frameworks expose all functionality as an API.

from nightwatch-cucumber.

RSsimranjeetsingh avatar RSsimranjeetsingh commented on September 20, 2024

Is there any update on this?

from nightwatch-cucumber.

mucsi96 avatar mucsi96 commented on September 20, 2024

No. This needs a total rewrite :(

from nightwatch-cucumber.

mucsi96 avatar mucsi96 commented on September 20, 2024

The easier solution is to run using nightwatch runner but get an output similar to cucumber. But I have no idea how to make it. :)

from nightwatch-cucumber.

Garethp avatar Garethp commented on September 20, 2024

A better solution which I came across is to try and decouple the NightwatchJS client from the NightwatchJS Test Runner, and pass it in to Cucumber directly. I made an example here https://github.com/Garethp/cucumber-nightwatch

from nightwatch-cucumber.

mucsi96 avatar mucsi96 commented on September 20, 2024

Thanks for the comment. Its the opposite solution to the Nightwatch-Cucumber problem :)

from nightwatch-cucumber.

mucsi96 avatar mucsi96 commented on September 20, 2024

Initially I started with a very similar solution.

from nightwatch-cucumber.

Garethp avatar Garethp commented on September 20, 2024

Maybe some documentation in the main nightwatch project could be added to make it clearer how to separate the API client from the Test Runner itself. Being able to do that would give Nightwtch more flexibility in how and where it can be run

from nightwatch-cucumber.

mucsi96 avatar mucsi96 commented on September 20, 2024

+1 I also think that Cucumber.js should also separate the API client from the Test Runner itself.

from nightwatch-cucumber.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.