mercredi 20 mars 2019

How to execute test cases in protractor with different conditions?

i have written condition for executing different test cases in different scenarios

describe('some',()=>{
if(value=="true"){
it('steps-1',async(){
//some steps
});
}
else{
it('steps-2',async(){
//some steps
});
}
});

but it is always executing else condition only even it is true, is there any other approach to handle test cases with different condition

Aucun commentaire:

Enregistrer un commentaire