question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Cucumber rerun feature] TypeError: Cannot read property 'line' of undefined

See original GitHub issue

Hi, all When using

rerun:@rerun.txt

Error: TypeError: Cannot read property ‘line’ of undefined [rerun:execute] at CucumberMessagesParser.scenarioDetailsFor (/Users/tab.wu/Study/cucum/serenity-js-cucumber-protractor-template/node_modules/@serenity-js/cucumber/src/listeners/messages/parser/CucumberMessagesParser.ts:185:26) [rerun:execute] at CucumberMessagesParser.parseTestCaseStarted (/Users/tab.wu/Study/cucum/serenity-js-cucumber-protractor-template/node_modules/@serenity-js/cucumber/src/listeners/messages/parser/CucumberMessagesParser.ts:87:37) [rerun:execute] at EventEmitter.CucumberMessagesListener.options.eventBroadcaster.on (/Users/tab.wu/Study/cucum/serenity-js-cucumber-protractor-template/node_modules/@serenity-js/cucumber/src/listeners/messages/CucumberMessagesListener.ts:50:41) [rerun:execute] at EventEmitter.emit (events.js:203:15) [rerun:execute] at EventEmitter.emit (domain.js:448:20)

Plz refer to example: https://github.com/Gump0422/serenity-js-cucumber-protractor-template

You can run with commads: npm install npm test npm rerun

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Gump0422commented, Sep 1, 2021

HI, @jan-molak Thanks for your nice work and support, Serenity/JS is a good test framework and I am so interested, I will consider your advice to be a sponsor of it, since I have a job now, I have to ensure it will not be conflict with my job.

0reactions
viper3400commented, Oct 23, 2022

@jan-molak, issue should be solved in cucumber-js since version 8.4.0.

Should be solved then in the latest Serenity/JS 3.0 RC as well: https://github.com/serenity-js/serenity-js/blob/3480ba44d83ff663a6a7c3e51ab1f977776cc9d0/packages/cucumber/package.json#L65

Most likely not solved in the Serentiy/JS 2.x branch: https://github.com/serenity-js/serenity-js/blob/0a7c900eea7d29e1647ea915150d7b66450126be/packages/cucumber/package.json#L68

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'then' of undefined in protractor-cucumber
My fourth step failed and getting error "TypeError: Cannot read property 'then' of undefined".where i am going wrong in my step.js file.Or how ......
Read more >
cucumber/cucumber-js - Gitter
I set up a run configuration to run the tests but i am getting an error 'TypeError: Cannot read property 'nightwatchApi' of undefined'....
Read more >
Getting runtime cucumberexception for error parsing feature file
First check if there is any extra space ? Or just know if there is semicolon or something as such. If no then...
Read more >
IntelliJ IDEA 16 145.184.1 Release Notes - YouTrack
IDEA-152154 (Bug), Cucumber.js plugin - Navigation from feature file to steps file fails. IDEA-151744 (Bug), Cannot rerun test from context menu. #### CSS....
Read more >
Technical Difficulties with Rerun.txt tests - Google Groups
public class CucumberTest {. } Scenarios in feature testRerun.feature: @test. Scenario Failing test. Given I fail this test. @test. Scenario Passing test.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found