Sharing Top Content from the Angular-sphere.

DRY’ing up setup and teardown of your Protractor Jasmine Spec – Assert Selenium

  • describe ( ‘my first spec test’ , function ( ) {
  • * the file is a spec file that will contain specific tests.
  • // If you need to do stuff do stuff
  • // Do stuff that should be done in a beforeEach method
  • var url = ‘http://localhost’ ; // enter your test server url

Read the full article, click here.


@CNishina: “”DRY’ing up setup and teardown of your Protractor Jasmine Spec” by @Machtyn”


Problem:
A question was recently asked on the Gitter Protractor site
wondering what is the best way to reduce code copy-paste when needing to do the same beforeEach, beforeAll, afterEach, and/or afterAll code in multiple Spec.js files.


DRY’ing up setup and teardown of your Protractor Jasmine Spec – Assert Selenium

Comments are closed, but trackbacks and pingbacks are open.