Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed: Cannot read property 'fulfilled' of undefined #50

Open
saxena-ashutosh opened this issue May 26, 2017 · 1 comment
Open

Failed: Cannot read property 'fulfilled' of undefined #50

saxena-ashutosh opened this issue May 26, 2017 · 1 comment

Comments

@saxena-ashutosh
Copy link

I am trying to use protractor-perf with angular2 project with typescript and faced below error on perf.start() statement in my test spec:
× should display panel with user input

  • Failed: Cannot read property 'fulfilled' of undefined
    at ProtractorPerf. (E:\test-proj\node_modules\protractor-perf\lib\index.js:43:34)
    at ManagedPromise.invokeCallback_ (C:\Users\username\AppData\Roaming\npm\node_modules\protractor-perf\node_modules\selenium-webdriver\lib\promise.js:1379:14)
    at TaskQueue.execute_ (C:\Users\username\AppData\Roaming\npm\node_modules\protractor-perf\node_modules\selenium-webdriver\lib\promise.js:2913:14)
    at TaskQueue.executeNext_ (C:\Users\username\AppData\Roaming\npm\node_modules\protractor-perf\node_modules\selenium-webdriver\lib\promise.js:2896:21)
    at asyncRun (C:\Users\username\AppData\Roaming\npm\node_modules\protractor-perf\node_modules\selenium-webdriver\lib\promise.js:2820:25)
    at C:\Users\username\AppData\Roaming\npm\node_modules\protractor-perf\node_modules\selenium-webdriver\lib\promise.js:639:7
    at process.tickCallback (internal/process/next_tick.js:109:7)
    From: Task:
    at ProtractorPerf.start (E:\test-proj\node_modules\protractor-perf\lib\index.js:51:37)
    at Object. (E:\test-proj\e2e\app.e2e-spec.ts:13:20)
    at new ManagedPromise (C:\Users\username\AppData\Roaming\npm\node_modules\protractor-perf\node_modules\selenium-webdriver\lib\promise.js:1082:7)
    at TaskQueue.execute
    (C:\Users\username\AppData\Roaming\npm\node_modules\protractor-perf\node_modules\selenium-webdriver\lib\promise.js:2913:14)
    at TaskQueue.executeNext_ (C:\Users\username\AppData\Roaming\npm\node_modules\protractor-perf\node_modules\selenium-webdriver\lib\promise.js:2896:21)
    at asyncRun (C:\Users\username\AppData\Roaming\npm\node_modules\protractor-perf\node_modules\selenium-webdriver\lib\promise.js:2820:25)
    at C:\Users\username\AppData\Roaming\npm\node_modules\protractor-perf\node_modules\selenium-webdriver\lib\promise.js:639:7
    at process._tickCallback (internal/process/next_tick.js:109:7)

I have initialized and used protracter-perf inside our test spec using following statements:

var PerfRunner = require('protractor-perf');

describe('test-proj App', () => {
var perfRunner = new PerfRunner('protractor', browser);
it('should display panel with user input', () => {
perfRunner.start();
page.navigateTo();
expect(page.getInputsCount()).toEqual(3);
perfRunner.stop();
}

Can anyone help me on this.

Thanks
Ashutosh

@markserbol
Copy link

Having the same issue in typescript. Anyone solved this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants