In Protractor, how can I skip failed test cases and continue remaining test cases -


for example, in set of 10 test cases, 1 test in particular expects condition failing.

in case how can stop executing test case further, or should continue execute remaining test cases?

jasmine supports pending() function.

if call pending function in specs, spec marked pending.in case 1 of expectation failing put pending function before that!

describe('test', function() { it('skip spec', function() { if (someskipcheck()) {   pending(); } expect(1).tobe(2); // expect failing }); 

for more details can refer jasmine pending function - http://jasmine.github.io/2.0/introduction.html#section-pending_specs


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -