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

Fixed #3132 - Mark test scenarios passed/failed and send reason to Browserstack while using Cucumber as a test-runner #3133

Conversation

gravityvi
Copy link
Member

Changes

  • extracted scenarios results in the After hook and send to BrowserStack.
  • exposed transport from Nightwatch createClient.
  • added tests for the change.

Impacts

@gravityvi gravityvi changed the title Fixed #3132 - Mark test scenarios passed/failed and reason to Browserstack while using Cucumber as a test-runner Fixed #3132 - Mark test scenarios passed/failed and send reason to Browserstack while using Cucumber as a test-runner Apr 5, 2022
@gravityvi gravityvi requested a review from beatfactor April 6, 2022 07:30

//send test-case result to cloud provider
const {result} = testCase;
if (this.client.transport && this.client.transport.usingBrowserstack && result) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is too specific. We need a default method on the base transport and then overwrite that in the browserstack transport.

@gravityvi gravityvi requested a review from beatfactor May 2, 2022 08:14
@beatfactor beatfactor merged commit b55344f into nightwatchjs:main May 2, 2022
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

Successfully merging this pull request may close these issues.

[Enhancement] Report Test-status to Browserstack when using cucumber runner
2 participants