SUPARNA SOMAN
SUPARNA SOMAN

Reputation: 2693

How to run tests under suite in Protractor

How do I run suites in protractor. Here is my config file:

exports.config = {
       seleniumAddress: 'http://localhost:4444/wd/hub',

       suites:
       {
         one: ['test.js'],
         two: ['homePageSpec.js']
       },

       onPrepare: function () {
           browser.driver.manage().window().setSize(1180, 900);

       },
   }

I tried protractor ProtractorConf.js --suite one

Upvotes: 0

Views: 2539

Answers (1)

SUPARNA SOMAN
SUPARNA SOMAN

Reputation: 2693

I removed the square brackets and it worked. like:

suites:
       {
         one: 'test.js',
         two: 'homePageSpec.js'
       },

Upvotes: 1

Related Questions