Is there any way to run group based test cases.
Hi,
I have a doubt is there any possibility to run tests group based in instances . like in chrome running smoke level test cases and in firefox running full test cases parallel.
Regards OmPrakash
Is this what you're looking for?
exports.config = {
// Spec patterns are relative to this directory.
specs: [
// shared specs...leave it blank if none
],
chromeOnly: false,
multiCapabilities: [{
'browserName': 'chrome',
specs: 'some_smoke_level_test_case.js'
}, {
'browserName': 'firefox',
specs: 'some_full_test_case.js'
}],
};
means we have to write code separately? it s not possible the grouping test cases like TESTNG .
Not familiar with TESTNG. Can you explain the set up you want?
@Test( groups = {"smoke", "regression" }) @Test( groups = {"smoke" }) This is grouping in TESTNG framework If we call in xml configuration it will run only that group test cases only reaming won't execute . like this calling.
<groups>
<run>
<include name="smoke"/>
</run>
</groups>
Like that behavior is available in jasmine framework with out writing test cases in separate place.
This is not currently available in Jasmine or Mocha, so it's unlikely that we will adopt it in Protractor. You'll have to use suites. You can add one test file to multiple suites, but you can't separate individual specs in a file into different suites.
Thank you Juliemr for your reply