InterviewSolution
| 1. |
How To Run Multiple Specs In Protractor? |
|
Answer» In ORDER to run multiple spec files in PROTRACTOR, you just need to mention them in the spec FLAG in an array. For eg, let’s say I have TWO different spec files test1_spec.js and test2_spec.js, so I can do this Specs: ['. /test/test1_spec.js','./test/test2_spec.js'] This will MAKE Protractor run these multiple spec files. In order to run multiple spec files in Protractor, you just need to mention them in the spec flag in an array. For eg, let’s say I have two different spec files test1_spec.js and test2_spec.js, so I can do this Specs: ['. /test/test1_spec.js','./test/test2_spec.js'] This will make Protractor run these multiple spec files. |
|