gulp-protractor

Protractor - beforeAll and afterAll undefined

拈花ヽ惹草 提交于 2019-12-04 18:17:53
I am using Protractor with jasmine. Protractor version is 3.2.2 , I found this using the command protractor --version . How to find the jasmine version used by protractor. When I read the updgrade doc , I couldn't find the steps to upgrade jasmine, all I found is to add jasmine2 in configuration file. My configuration file looks like this exports.config = { framework: 'jasmine2', .... } But I still was not able to use beforeAll and afterAll . Am I missing anything here. Since beforeAll and afterAll are undefined I think the version of jasmine used by protractor is not 2x. Any help is greatly

Protractor how to run login test script first

大兔子大兔子 提交于 2019-12-04 09:34:38
问题 I am trying to test an Angular Single Page application with protractor. I need to run the login script first. Only then I can move to other routes since there is a check for token in localStorage on route change. Is this testing approach correct?. In that case I need to run the login script first. Does protractor allows to control the spec file order. Or should I run the each script independently by hardcoding the token in localStorage (Should I do login api call independently before each

Protractor how to run login test script first

我的梦境 提交于 2019-12-03 03:18:11
I am trying to test an Angular Single Page application with protractor. I need to run the login script first. Only then I can move to other routes since there is a check for token in localStorage on route change. Is this testing approach correct?. In that case I need to run the login script first. Does protractor allows to control the spec file order. Or should I run the each script independently by hardcoding the token in localStorage (Should I do login api call independently before each test). My login script contains the following it('Login with wrong email', function() { }) it('Login with

protractor-jasmine2-html-reporter doesn't consolidate results for all test when tests are shared using 'shardTestFiles': true in conf file

五迷三道 提交于 2019-12-01 11:06:29
Recently we have configured our e2e-tests to be on Jenkins & soon we realized that we have to use shared test files: true options as complete suite run is taking very long time for us peeking 9-10hrs on daily basis. but when we configured below two options in conf file. tests are running fine but final report displays only the last specs run results in save path. consolidate all options is not giving the full reports. please find our conf file details. any help will be appreciated. Edit the conf file as per solution provide by Aditya. please help var Jasmine2HtmlReporter = require('protractor

protractor-jasmine2-html-reporter doesn't consolidate results for all test when tests are shared using 'shardTestFiles': true in conf file

南笙酒味 提交于 2019-12-01 07:28:05
问题 Recently we have configured our e2e-tests to be on Jenkins & soon we realized that we have to use shared test files: true options as complete suite run is taking very long time for us peeking 9-10hrs on daily basis. but when we configured below two options in conf file. tests are running fine but final report displays only the last specs run results in save path. consolidate all options is not giving the full reports. please find our conf file details. any help will be appreciated. Edit the