Nested it in Protractor/Jasmine
问题 Can I create a nested it in Protractor/Jasmine. it("outer it", function () { it("inner it", function () { expect(1).toBe(1); }); }); I am trying to execute it test cases inside a loop, and in every iteration I want to run a test, for example: it("outer it", function () { for(var i=0;i<10;i++){ it("inner it", function () { expect(1).toBe(1); }); } }); The reason I want to do it is that I want to initialize an array and then in a dynamically way to loop trough all the element and run a number