You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Would like to create BDD style test using Power App Test Engine
Describe the solution you'd like
Create a Gherkin test using Specflow/Reqnroll.
For example as Specflow test something similar to
Feature: LoginScenario: Successful loginGiven the user profile "user1" navigates power app named "MyTest"Then the user should be redirected to the dashboard
Exend Test Engine as a NuGet package and extend the ability
usingTechTalk.SpecFlow;usingMicrosoft.PowerApps.TestEngine;namespaceSpecflowPowerAppsExample{[Binding]publicclassLoginSteps{privatereadonlyTestEngine_testEngine;publicLoginSteps(){_testEngine=newTestEngine();}[Given(@"the user profile ""(.*)"" navigates power app named ""(.*)""")]publicvoidGivenTheUserProfileNavigatesPowerAppNamed(stringuserProfile,stringappName){_testEngine.TestSettings.Profile=userProfile1;_testEngine.TestSettings.AppName=appName;}[Then(@"the user should be redirected to the dashboard")]publicvoidThenTheUserShouldBeRedirectedToTheDashboard(){varpowerFxSteps=newList<string>{"Set(CurrentPage, 'Dashboard')","Validate(CurrentPage == 'Dashboard')"};foreach(varstepinpowerFxSteps){varresult=_testEngine.ExecuteAndReturn(step);Assert.IsTrue(result.Contains("true"),$"Step '{step}' failed.");}}}}
Describe alternatives you've considered
No response
Additional context?
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Would like to create BDD style test using Power App Test Engine
Describe the solution you'd like
Create a Gherkin test using Specflow/Reqnroll.
For example as Specflow test something similar to
Exend Test Engine as a NuGet package and extend the ability
Describe alternatives you've considered
No response
Additional context?
No response
The text was updated successfully, but these errors were encountered: