Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to get a handle of the spec name in the AfterEach block ? #875

Closed
raghavan85 opened this issue Jun 10, 2015 · 2 comments
Closed

Comments

@raghavan85
Copy link

Hi Team,

We can perform jasmine.getEnv().currentSpec.description to get the name of the test in the AfterEach block in Jasmine 1 version for protractor but doesn't work when switching to jasmine2 framework in Protractor.

I see a closed story here: #611.

The scenario specifically where I would use is to capture screenshot with file name containing the spec name.

Is it possible to bring back the deprecated feature or provide a different mechanism that I can include in every spec file in the afterEach block to capture screenshots with the filename containing the spec name.

@raghavan85
Copy link
Author

Found protractor-jasmine2-html reporter which does the job.

@hjhart
Copy link

hjhart commented Aug 24, 2015

For those who stumble upon this: https://github.com/Kenzitron/protractor-jasmine2-html-reporter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants