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

Remove obsolete configuration properties: "logNUnitError", "takeScreenshotOnNUnitError", "takePageSnapshotOnNUnitError", "onCleanUpAddArtifactsToNUnitTestContext", "onCleanUpAddDirectoryFilesToNUnitTestContext" #116

Closed
YevgeniyShunevych opened this issue Apr 8, 2024 · 0 comments
Assignees
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

Instead of "logNUnitError" configuration property use the following configuration:

{
  "eventSubscriptions": [
    {
      "handlerType": "Atata.LogNUnitErrorEventHandler, Atata"
    }
  ]
}

Instead of "takeScreenshotOnNUnitError", "takeScreenshotOnNUnitErrorKind" and "takeScreenshotOnNUnitErrorTitle" configuration properties use the following configuration:

{
  "eventSubscriptions": [
    {
      "handlerType": "Atata.TakeScreenshotOnNUnitErrorEventHandler, Atata",
      "screenshotKind": "default", // Optional. "default" by default. Can be "viewport" or "fullPage".
      "screenshotTitle": "Failed"  // Optional. "Failed" by default.
    }
  ]
}

Instead of "takePageSnapshotOnNUnitError" and "takePageSnapshotOnNUnitErrorTitle" configuration properties use the following configuration:

{
  "eventSubscriptions": [
    {
      "handlerType": "Atata.TakePageSnapshotOnNUnitErrorEventHandler, Atata",
      "snapshotTitle": "Failed" // Optional. "Failed" by default.
    }
  ]
}

Instead of "onCleanUpAddArtifactsToNUnitTestContext" configuration property use the following configuration:

{
  "eventSubscriptions": [
    {
      "handlerType": "Atata.AddArtifactsToNUnitTestContextEventHandler, Atata"
    }
  ]
}

Instead of "onCleanUpAddDirectoryFilesToNUnitTestContext" configuration property use the following configuration:

{
  "eventSubscriptions": [
    {
      "handlerType": "Atata.AddDirectoryFilesToNUnitTestContextEventHandler, Atata",
      "directoryPath": "path"
    }
  ]
}
@YevgeniyShunevych YevgeniyShunevych added this to the 3.0.0 milestone Apr 8, 2024
@YevgeniyShunevych YevgeniyShunevych self-assigned this Apr 8, 2024
YevgeniyShunevych added a commit that referenced this issue Apr 8, 2024
…akeScreenshotOnNUnitError"`, `"takePageSnapshotOnNUnitError"`, `"onCleanUpAddArtifactsToNUnitTestContext"`, `"onCleanUpAddDirectoryFilesToNUnitTestContext"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant