简体   繁体   中英

Multiple protractor suites not running on chrome

I have multiple suites in protractor which i want to test and run.It runs fine on Mozilla Firefox but only the first suite runs while using Google chrome(Version 51.0.2704.84 (64-bit)

 suites: {
         lawfirm: [
            '../Test_Suites/Lawfirm/signUp_spec.js',
            '../Test_Suites/Lawfirm/login_spec.js',


        ],

         beneficiary :  [
           '../Test_Suites/Beneficiary/loginBeneficiary_spec.js',


          ]

    },

Protractor Version : 3.3.0

You don't need to make suites an array, just use * to denote all files under a certain directory.

suites: {
    lawfirm: '../Test_Suites/Lawfirm/*.spec.js'
}

Then run as you would normally:

protractor conf.js --suite lawfirm

You don't need to put an array. Just a comma separated list (no spaces after the comma either)

suites:{ suite1:'....','....', suite2:'...','....' }

Here is where you can find more information on the protractor config setup: https://github.com/angular/protractor/blob/master/docs/referenceConf.js

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM