-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Using Protractor to run tests against multiple user roles #1088
Comments
I believe I am getting the unsupported protocol because I hit an empty spec initially then run the specs I want for the multiple browsers. I did this to get around the error protractor throws for not defining a main spec to run first.
|
@jpetraws the latest version of Protractor should not throw an error if there is not a main spec. Do you still see issues on the latest version? If so, can you clarify what you mean by 'unsupported protocol' - where do you see this message? |
updating to the latest version is just:
right? I have updated and as long as I get a new browser instance per spec I can get it to work. Is there anyway to pull up a new browser at the beginning of a spec? |
Yes, your update method is correct. No, there is no way to get a new instance of the browser at the beginning of the spec. Doing it with multiCapabilities is the right way to go. |
Here is my multi-caps section. All of the browsers work individually but once I bundle IE in there with chrome and firefox, I start getting errors on random instances.
Here are the results with different failures on different browsers each time Try #1:
Try #2:
Here are the stack traces:
|
Your new problem is a dupe of #1052 Closing this issue since the main problem seems solved! |
Ah ok, thanks Julie! |
@jpetraws Thanks for posting this. I too am attempting to perform some tests with differing specs for each required role. Surprisingly, this does not seem to be supported in any other manner than what you have demonstrated. Please let me know if you may have found other avenues as I'm still searching. While your approach accomplishes the main goal of being able to have different specs for each role, I believe it has one drawback. Perhaps you may have a way around this as well? The drawback that I see with this approach, is that we can no longer use the suites capabilities and consequently invoke protractor to only run a subset of suites (--suite=suite1,suite2). Any thoughts on this? TIA! |
I want to add multiple credential at run time while running my automation test for Login screen. |
|
I am trying to run the same test for different roles in the application.
The problem is since there is no logout/login page(SSO magic). I can't logout and login is a different user on the same browser.
I have been trying to get around this and look up a way to pull up a new browser instance or anything.
The only thing that got kind of close was if I tried to use multiCapabilities:
Each individual spec works, but when I run them together they do not and I get Unknown error unsupported protocol. And also Error: Error while waiting for Protractor to sync with the page: {}
Before each test I have to hit an Oracle SSO page which is non-angular then I can finally be re-routed to the url that is angular.
The text was updated successfully, but these errors were encountered: