Change the inheritance from TestFeature to UiTest.
Before:
publicclassMyTest:TestFeature{ }
After:
publicclassMyTest:UiTest{ }
Change from RunScenario to Execute method
Before:
this.RunScenario(given =>this.FirstStep(), then =>this.SecondStep());
After:
this.Execute(this.TestCaseSteps);
The Execute method receives a delegate, this means that it can be a lambda or another method with an UiExecutionController as a parameter. If you have multiple steps in RunScenario these can be passed to a new method like this:
This pattern is no longer supported because, with the new architecture, QualityMate can run more than one UiPlayer at the same time. An UiExecutionController is created on every Execute call and you need to explicitly get the PageObjects from it.
Change the way a configuration is modified before Execution
Before:
this.ConfigurationManager.CreateContext(newDictionary<string,string>{ [ParameterName.Technology] =Technology.DesktopWinForms.ToString(), [ParameterName.Application] =AssetPaths.WinAppPath,});this.RunScenario(given =>this.FirstStep(), then =>this.SecondStep());