Giter Site home page Giter Site logo

cucumber adapter/plugin about protractor HOT 20 CLOSED

angular avatar angular commented on May 5, 2024
cucumber adapter/plugin

from protractor.

Comments (20)

exu avatar exu commented on May 5, 2024

👍

from protractor.

namukang avatar namukang commented on May 5, 2024

I'm currently working on using Angular, Protractor, and Cucumber.js together and have a working example here without an adapter: https://github.com/dskang/angular-cucumber-example

In the example above, I'm using protractor as a library and using cucumber.js to run the tests instead of the protractor runner.

On a side note, I'm having some trouble understanding the role of adapters in WebDriverJS/Protractor and would appreciate if someone could explain. I see adapters doing two things:

  1. Wrapping matchers (expect, etc.)
  2. Wrapping control flow functions (it, beforeEach, afterEach, etc.)

Wrapping matchers makes sense because they provide a nicer way to using matchers with the promises that the WebDriverJS API returns. For example, writing

expect(el.getText()).toEqual('test');

is nicer than writing

el.getText().then(function(text) {
  expect(text).toEqual('test');
});

However, I'm having trouble understanding the point of wrapping control flow functions as every command in the WebDriverJS API is already automatically wrapped in ControlFlow#execute() so that they are executed in the right order. What purpose does wrapping it, beforeEach, and afterEach serve? I assume doing so avoids some class of bugs regarding code being executed out of order, but I'm having trouble understanding how and when this would occur and would love to see some examples.

from protractor.

iamdoron avatar iamdoron commented on May 5, 2024

👍

from protractor.

 avatar commented on May 5, 2024

👍

from protractor.

Radek44 avatar Radek44 commented on May 5, 2024

👍

from protractor.

eterps avatar eterps commented on May 5, 2024

👍

from protractor.

mmiszy avatar mmiszy commented on May 5, 2024

👍

from protractor.

Mellbourn avatar Mellbourn commented on May 5, 2024

👍

from protractor.

jkogara avatar jkogara commented on May 5, 2024

👍

from protractor.

heath avatar heath commented on May 5, 2024

👍

from protractor.

tschoartschi avatar tschoartschi commented on May 5, 2024

👍

from protractor.

mrteera avatar mrteera commented on May 5, 2024

👍

from protractor.

laurelnaiad avatar laurelnaiad commented on May 5, 2024

Looking for info on best way to work with something like cucumber and protractor together. Do all these thumbs up indicate interest or that @DSKang's method is working for you?

from protractor.

heath avatar heath commented on May 5, 2024

@stu-salsbury Interest

from protractor.

revington avatar revington commented on May 5, 2024

+1

from protractor.

juliemr avatar juliemr commented on May 5, 2024

Done in 88c339f

from protractor.

awkay avatar awkay commented on May 5, 2024

@juliemr You rock Julie

from protractor.

awkay avatar awkay commented on May 5, 2024

@yannickcr Thanks a bunch for working it out!

from protractor.

jbpros avatar jbpros commented on May 5, 2024

@juliemr thanks a lot for doing this, @mattwynne and I were going to add Cucumber support tonight and realised it was already in protractor :)

from protractor.

brianewing avatar brianewing commented on May 5, 2024

Thanks @juliemr!

from protractor.

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.