Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

define the saucelabs job name for a scenario #2

Closed
Artyom-ARS opened this issue May 18, 2017 · 7 comments
Closed

define the saucelabs job name for a scenario #2

Artyom-ARS opened this issue May 18, 2017 · 7 comments

Comments

@Artyom-ARS
Copy link

In the original repository there are an opportunity to add job name and test status.
Could you please add the same according to the issue baseclass/Contrib.SpecFlow.Selenium.NUnit#7

@unickq
Copy link
Owner

unickq commented May 19, 2017

Hi @Artyom-ARS

Test status worked for SauceLabs. Look at SauceLabsWebDriver.cs UpdateTestResult()
If API was changed - I can make an update or accept pull request with it.

For job name you should you saucelabs.name param in app.config

@Artyom-ARS
Copy link
Author

Thank you for the answer. Is it possible to set saucelabs.name value to assembly version automatically or by code hook?

@unickq
Copy link
Owner

unickq commented May 19, 2017

I guess it possible, but not with this plugin. You can write your own ps script for upgrading assembly version :)

@Artyom-ARS
Copy link
Author

Perhaps my question wasn't clear enough. I'm not asking how to change assembly version. The question is how to use assembly version as value for job name?

@unickq
Copy link
Owner

unickq commented May 22, 2017

You can't do it programmatically. All WebDriver config are set from app.config during the SpecFlows CS files generation.
You can try to write a PowerShell script which can read AssemblyVersion and replace saucelabs.name in App.config. Script could be executed as MsBuilt task

@unickq
Copy link
Owner

unickq commented May 22, 2017

Maybe later I can introduce several variables for task you've asked for setting names, projects, etc.
Now I have @@debug key for browserstack.build which replaces build with DateTime.Now()

@Artyom-ARS
Copy link
Author

Thank you. Will do it with PowerShell.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants