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.

Get step result in AfterStep event

See original GitHub issue

Hi everyone, I’m trying to get step result in AfterStep event but it didn’t work. Here is my code

this.registerHandler('AfterStep', function (event, callback) { // Neu truyen vao callback thi phai goi callback o cuoi ham
        var stepResult = event.getPayloadItem('stepResult');
        writeStream.write(stepResult.getStatus());
        callback();
    });

I have no idea where the issue is. Anyone pls help

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
charlierudolphcommented, Apr 15, 2016

So I have plans to replace beforeFeatures / afterFeatures (which is basically a global before/after), but not beforeFeature / afterFeature. What do you those events for?

0reactions
lock[bot]commented, Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AfterStep event how to determine how the test step...
I am writing some groovy code in the AfterStep event. I would like to determine if the step has been executed by test....
Read more >
ReadyAPI - How to filter by testStep name in TestRunListener ...
afterSetp event handler. I want to filter it by the current testStep name. Let's say, testStep.Name.contains("XXX"). How can I get ...
Read more >
Configuring a Step - Spring
The following Java example shows how to configure a job to have steps that can be restarted: Java Configuration.
Read more >
Cucumber Hooks - Baeldung
We've used @AfterStep here to take a screenshot after every step. This happens regardless of whether the step finishes successfully or fails.
Read more >
ReadyAPI: Properties & Scripting Samples - SoapUI
Note: This method only works for SOAP virtual services. Logging Results. 8.1 Saving All Test Step Results to Files. NOTE: Event handlers are...
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