1

Am I correct in saying that Protractor must have the Protractor/Selenium Webdriver installed on the machine where the tests are being run but Angular Scenario runner executes within the browser?

I would essentially love to be able to run tests/scenarios remotely to give potential interviewers an insight into the behaviour/nature of a site I am developing.

I have used iMacros in the past, however, the tests weren't strictly portable between Firefox and Chrome?

Is my assumption about the difference between Protractor and Angular Scenario runner correct?

Thanks, Mark.

Mark Gargan
  • 831
  • 1
  • 9
  • 21

2 Answers2

2

Protractor wraps the WebDriverJS - javascript selenium bindings, and adds quite a lot on top of it, specifically to testing Angular sites but not necessarily. When you run Protractor, you need your application to be served and accessible, you may need to start the selenium server or use the direct connect feature available for Firefox and Chrome, see also:

Angular Scenario runner on the other hand is something you should not be considering - it is currently deprecated and is in the maintenance mode.

Community
  • 1
  • 1
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
  • Hi Alecxe Thanks for the response Alecxe. What I'm looking to find is I guess a pure Javascript library that will enable me to open a new page with a url and step through the workflows from anywhere I have access to a browser. i.e. not have to have protractor installed on the machine where I am running the tests. – Mark Gargan Feb 20 '16 at 11:03
0

Am I correct in saying that Protractor must have the Protractor/Selenium Webdriver installed on the machine where the tests are being run but Angular Scenario runner executes within the browser?

If you are using NPM then you can have Protractor/Selenium Webdriver as local dependencies. They don't have to be installed globally. See https://github.com/angular/protractor.

I would essentially love to be able to run tests/scenarios remotely to give potential interviewers an insight into the behaviour/nature of a site I am developing.

Do you mean a live demo of the site using protractor or something like that to show the workflows and usecases? If so then you might be over engineering the solution. A Youtube video would have the same effect.

I have used iMacros in the past, however, the tests weren't strictly portable between Firefox and Chrome?

Protractor tests are portable, you just need the correct webdrivers and make sure to point to the browser binaries.

Is my assumption about the difference between Protractor and Angular Scenario runner correct?

I cannot answer this. I don't know enough about Angular Scenario Runner.

I would advise against it though as it is depreciated, see note at top of page https://docs.angularjs.org/guide/e2e-testing.

Vinnyq12
  • 1,519
  • 9
  • 9
  • Hi there Vinny, Thanks for the response, I understand what you are saying about the install and how the drivers dont have to be installable locally. What I would really love to have is a to be able to run the E2E tests directly within the browser. i.e. the javascript would open a new page and step through the tests filling in the input fields and making the assertions from within Javascript. That way whenever I like and from wherever I have an internet connection I could execute the tests and watch them proceed through the workflows. – Mark Gargan Feb 20 '16 at 10:56
  • @MarkGargan perhaps ask that specific question in a new post. It wasn't really clear from the original question. – Vinnyq12 Feb 21 '16 at 22:20