Running a translator against a parallel parallel application server

I need to reduce the execution time of my Protractor tests, so I want them to run in parallel on multiple application servers.
A protractor can open multiple instances of webdriver using multiCapabilities, but for all of them, "baseUrl" is the same. In my application, two sets that run simultaneously with the same application server can affect each other. So I need a way to manage the "baseUrl" queue, and every set that starts will get another baseUrl from this queue. And I want to be sure that if 2 tests ask baseUrl from the queue at the same time, they will get 2 different URLs, not one. Can anyone give me directions? Thanks

+4
source share
1 answer

In protractor.conf.jsyou can set baseUrl as the result of a self-executing function:

exports.config = {
  baseUrl: function() {
      //write some code to generate a unique URL
  }();
};

config link: https://github.com/angular/protractor/blob/master/docs/referenceConf.js

0
source

All Articles