Maneesha Yallanti
Maneesha Yallanti

Reputation: 1

Running a same test case on multiple pages using selenium/protractor

I have written few test cases using selenium/protractor and running on single page. I need to run same test cases against multiple pages parallely / one by one. How to implement this type of scenario?

Upvotes: 0

Views: 317

Answers (2)

Sanja Paskova
Sanja Paskova

Reputation: 1110

Use this library https://www.npmjs.com/package/jasmine-data-provider

You can define different pages as data and run the same test one after another.

Upvotes: 0

Alexander Tunick
Alexander Tunick

Reputation: 525

if I got you right, use it. in protractor.conf add this piece of code

multiCapabilities: [
  {'browserName': 'internet explorer'},
  {'browserName': 'chrome'}
],

maxSessions: 1,

browserName - which browser you want to utilize maxSessions - how many of them you can run in parallel at a time in the remote system.

Upvotes: 0

Related Questions