angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

E2E getting skipped in Jenkins but passing in local #5525

Open soundarya-kaplan opened 3 years ago

soundarya-kaplan commented 3 years ago

Bug report

I have configured E2E in Jenkins, E2E is passing in local but skipping in Jenkins with following msg,

/app/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_91.0.4472.101

ktp-web-testui@6.7.0 e2e /app node flake.js "--seleniumAddress" "http://selenium2db4276b6e28165ea893e53946e9ec86e8d24e0c1616:4444/wd/hub" "--params.baseUrl" "http://server2db4276b6e28165ea893e53946e9ec86e8d24e0c1616:4000" "--params.domainName" "server2db4276b6e28165ea893e53946e9ec86e8d24e0c1616" "--suite" "regression" "--grep" "@" "--params.env" "local" "--project=app-ppi-e2e" "--headless=true" "--disableChecks"

[07:27:25] W/driverProviders - Using driver provider directConnect, but also found extra driver provider parameter(s): seleniumAddress [07:27:25] I/launcher - Running 1 instances of WebDriver [07:27:25] I/direct - Using ChromeDriver directly... Jasmine started

Executed 0 of 1 spec[33m INCOMPLETE[39m[33m (1 SKIPPED)[39m in 0.003 sec. [07:27:26] I/launcher - 0 instance(s) of WebDriver still running [07:27:26] I/launcher - chrome #01 passed

All Tests Passed. CHEERS!!!

protractor.conf.js

const { SpecReporter } = require('jasmine-spec-reporter');
var { JUnitXmlReporter } = require('jasmine-reporters');

exports.config = {
  allScriptsTimeout: 20000,
  specs: [
    './../../apps/app-ppi-e2e/src/**/*-spec.js'
  ],
  suites: {
    regression: './../../apps/app-ppi-e2e/src/**/*-spec.js'
  },
  capabilities: {
    browserName: 'chrome',
    chromeOptions: {
      args: ['--window-size=1680,1050']
    }
  },
  directConnect: true,
  params : {
    baseUrl: 'http://localhost:4000'
  },

  framework: 'jasmine2',
  jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 60000,
    print: function pr() {}
  },
  useAllAngular2AppRoots: true,
  beforeLaunch: function before() {
    console.log('process directory ' + process.env.PWD)
    console.log('process current directory ' + process.cwd())
    require('ts-node').register({ // eslint-disable-line global-require
      project: 'apps/app-ppi-e2e/src'
    });
  }

Could anyone help on this, Thanks in Advance

StanislavKharchenko commented 3 years ago

Please provide your Protractor config.

soundarya-kaplan commented 3 years ago

Please provide your Protractor config.

Attached protractor.conf.js

andredesousa commented 3 years ago

I don't know, but it's important to be aware of issues with Chrome 91 and ChromeDriver 91.

https://bugs.chromium.org/p/chromium/issues/detail?id=1205107