Protractor open new browser for each test

2019-08-24 07:23发布

问题:

I want to open new browser for each new test starting at 'describe(info[i].TestName'. Both Login and Start App are part of one test.

Right now both tests run in same browser and then browser is closed.

for (let i in info) {

            describe(info[i].TestName, () => {

            beforeAll(function () {
            browser.get('http://abcsite.com');
            });

            describe('Login', () => {
                Login.start();
            });

            describe('LibraryApp', () => {
                LibraryApp.app(info[i]);
            });

});
}
标签: protractor