The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Automated screenshots of your e2e Protractor tests

Automated screenshots of your e2e Protractor tests

7:52
It can be useful to capture screenshots of your end-to-end functional tests with protractor. Because protractor tests are "just node", it is very straight forward.
Watch this lesson now
Avatar
egghead.io

It can be useful to capture screenshots of your end-to-end functional tests with protractor. Because protractor tests are "just node", it is very straight forward.

Avatar
Scott

Most important question first, what is that theme and font your using for webstorm?

In reply to egghead.io
Avatar
Ben

Haha, the font is Droid Sans Mono, size 15. The theme is a slightly customized version of Tomorrow Night Eighties.

In reply to Scott
Avatar
Joel

Haha, the font is Droid Sans Mono, size 15. The theme is a slightly customized version of Tomorrow Night Eighties.

This is, IMHO, the best. :)

In reply to Ben
Avatar
Scott

Haha, the font is Droid Sans Mono, size 15. The theme is a slightly customized version of Tomorrow Night Eighties.

Dang yer tomorrow night is the best. I couldn't get it to highlight php syntax with phpstorm so had to dump in a while back ):

In reply to Ben
Avatar
Attend

oh my gosh this just blew my mind. Thank you

+1 to your theme too

Avatar
Evan Gillogley

This code does not work for the current protractor and jasmine. Could you provide a solution? I can't seem to get the currentSpec object to capture.

Avatar
Ronnie

Like Evan said, this code does not work with jasmine versions 2.0 and above (so newer versions of protractor) because they don't let you access currentSpec anymore. There are some libraries for creating screenshot reports, but the process has gotten a lot less simple.

Avatar
Balaji

can you please add an video as how to generate an HTML reports in Protractor Automation.

Avatar
Balaji

Can you please add an video to read data from Excel in protractor automation

Avatar
Spokeo

What does fs import do and how would it stop the tests from running correctly?

Avatar
Zeeshan

var spec = jasmine.getEnv().currentSpec is always returning a null value.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?