patz
patz

Reputation: 1316

Running protractor test parallel on different environments

I would like to run my protractor test on different environments such as

testing it on local environment, 
testing it on test environment,
testing it on production

environment and so on at the same time and using the same browser example chrome.

So in this case my base URL would change for every environment: When I run the test I would like to run it parallel on all the different environments.

baseUrl:'localhost:8080'
baseUrl:'tst.company.com'
baseUrl:'prod.company.com'
etc

and browser remains the same

multiCapabilities:[
{ 'browsername':'chrome',
  'chromeOptions':{
      'binary': 'drive:pathToChrome',
      'args':'[]'
      'extensions':[]
    }
}]

Any one knows how to, on this cases. Thanks

Upvotes: 1

Views: 763

Answers (1)

alecxe
alecxe

Reputation: 473873

I would approach this with a task manager: grunt and grunt-parallel.

Create 3 separate grunt task configurations with different baseUrl settings (you would need grunt-protractor-runner package installed).

Upvotes: 1

Related Questions