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

Enhance FileScreenshotConsumer #61

Closed
YevgeniyShunevych opened this issue Aug 30, 2017 · 0 comments
Closed

Enhance FileScreenshotConsumer #61

YevgeniyShunevych opened this issue Aug 30, 2017 · 0 comments
Assignees
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

YevgeniyShunevych commented Aug 30, 2017

Add the following properties to FileScreenshotConsumer:

public string FolderPath { get; set; }

public string FileName { get; set; }

public string FilePath { get; set; }

Path property value can contain any of the following variables:

  • {build-start}
  • {test-name}
  • {test-start}
  • {driver-alias}
  • {screenshot-number}
  • {screenshot-title}
  • {screenshot-pageobjectname}
  • {screenshot-pageobjecttypename}
  • {screenshot-pageobjectfullname}

Add the following extension methods for AtataContextBuilder<FileScreenshotConsumer>:

public static AtataContextBuilder<FileScreenshotConsumer> WithFolderPath(this AtataContextBuilder<FileScreenshotConsumer> builder, string folderPath);

public static AtataContextBuilder<FileScreenshotConsumer> WithFileName(this AtataContextBuilder<FileScreenshotConsumer> builder, string fileName);

public static AtataContextBuilder<FileScreenshotConsumer> WithFilePath(this AtataContextBuilder<FileScreenshotConsumer> builder, string filePath);
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