Coder Social home page Coder Social logo

Comments (4)

NickTomlin avatar NickTomlin commented on September 23, 2024 1

I think this is definitely an issue. The only indication we give is the retry param but that isn't a hit of how many runs have ocurred.

Off the top of my head, you could work around this by:

  • Writing your screenshots to a timestamped directory
  • keeping track of the test runs by writing to a file and then reading that before you initialize your screenshotting code

But those definitely create more work for you 😄

I'd be very happy to accept a PR that passed the number of retries instead of just a retry Boolean as that would probably be an easier solve. You could then access those params in your test or in the onPrepare step and and use that to prefix your screenshot directory/file names.

I don't have any plans to work on this actively but i'd be happy to collaborate on a pull request!

from protractor-flake.

rasjani avatar rasjani commented on September 23, 2024

No promises but since i do "need" this, i might end up actually addressing this in one form or an another.

from protractor-flake.

NickTomlin avatar NickTomlin commented on September 23, 2024

Sure, no pressure 😄

If it's all right with you, i'm going to close this issue for now. Feel free to PR whenever or post back if you have a workaround.

from protractor-flake.

rasjani avatar rasjani commented on September 23, 2024

Np problemo. Possible solution to my issue in pr now.
And kudos for really helpful first comment - saved me a lot of grunt work.

from protractor-flake.

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.