bgran05
9 years agoOccasional Contributor
browser as variable or parameter to NUnit scripts?
Hi,
I am wondering is it possible to use a browser loop when you are running Selenium Nunit tests as Test Items?
I currently have Test Fixtures that use Test Fixture attributes to define the browser in the Selenium *.cs scripts themselves. For example, this would make my test first run in Chrome, then in Edge:
[TestFixture("Chrome")]
[TestFixture("Edge")]
Could I control this from outside my Selenium scripts in Test Complete? I am not sure how I would pass the variable of which browser I am running to my scripts, since they are written in C#.
Any advice is appreciated! Thanks!