Recently, I have utilized NUnit test cases with Selenium in order to conduct testing on a web application. My goal now is to run these same test cases across various environments such as QA, Staging, and Production. Can you suggest the simplest method to ...
Embarking on my journey as a newcomer to selenium automation, I am eager to integrate it into my latest project using C# and NUnit3.0. Despite designing a framework, it appears to have some bugs that I am struggling to resolve. Seeking guidance and suppo ...
After transitioning from a Java-JUnit4-Webdriver setup to a C#-NUnit-Webdriver one, I found myself missing the convenience of creating test suites in Eclipse. In Eclipse, I could easily compile test classes into a test-suite class and run them as JUnit tes ...
I am in the process of setting up Selenium tests to be executed by CCNET, which operates as a service on our build server. Below is my Project.build file: <Target Name="AutomationTests"> <Message Text="~~~~~~~~~~~~~~~~$(HARD_NEW_LINE)" /> &l ...
Currently, I am in the process of developing a Selenium test using Chrome Driver. In order to execute the test on my local machine, I have been running the Chrome Driver by specifying the path on my computer like so: Instance = new ChromeDriver(@"C:Users ...
I have a group of test cases that have been automated using Selenium scripts in C# with NUnit. I am able to run these tests individually, but now I need to run them simultaneously. Can anyone provide guidance on how to achieve parallel execution for thes ...
Trying to streamline my testing process by running just 5 out of the 200 tests in my suite using Selenium with NUnit and C#. I thought the /run command could help, but it keeps giving me an "invalid argument" error. Can anyone provide guidance on how to sp ...
I need assistance converting the code below from MSTest V2 to NUnit 3. Can someone help me identify the alternatives for CurrentTestOutcome and UnitTestOutcome in NUnit? var status = MyTestContext.CurrentTestOutcome; switch (status) { case UnitTestOu ...
In the process of testing a sophisticated web application, we are utilizing a test framework that consists of C#, Nunit 2.5.10 and Selenium RC 2.24.1 (Unfortunately, switching to WebDriver is not currently an option). After revamping our application' ...
Currently, I am in the process of creating test scripts with Selenium RC in Visual Studio IDE and running them through NUnit. I am exploring how to run these tests on a Virtual PC. What software is necessary on the Virtual machines? Just NUnit or do I als ...
In my project, I typically create a Web Driver instance in all of my test classes and initialize it with Firefox Driver. Is this standard practice for automation, or should I only create it once and use it throughout the entire project? If the latter is re ...
My tests started failing randomly across IE and Firefox from today. All the failures are showing me this exception. Earlier, I was using VS2013, with Nunit version 3.0.1, IEDriver 2.45.0.0, Selenium.Support and Selenium.WebDriver 2.48.2. I initially though ...
I developed this code using C# to enable Firefox to automatically save the file without displaying the save as dialog box. FirefoxProfile profile = new FirefoxProfile(); profile.SetPreference("browser.download.manager.alertOn ...
I recently set up a testing solution using Specflow, selenium, and NUnit to run in parallel. I added the following code in AssemblyInfo: [assembly: Parallelizable(ParallelScope.Fixtures)] Initially, everything was running smoothly in parallel. However, af ...
I am looking to access a series of elements with similar IDs ranging from 1 to 47. Rather than individually specifying each element, is there a more efficient way to create an array or list for easy iteration? [FindsBy(How = How.Id, Using = "ElementId1")] ...
Currently, I am challenged with re-factoring my Selenium RC test scripts written in Visual Studio using C#. All my tests are currently located within a single file, and I am seeking advice, recommendations, or resources on how to modularize these tests eff ...
In my 'nunit' project created in Visual Studio, I have a simple test but no default 'App.config' file. Therefore, I manually created an 'App.config' file and marked it 'Copy always' from the properties option. When trying to read values from the config fi ...
I have a question regarding the implementation of the NUnit retry attribute in our project NUnit version: 3.12.0 NUnit3TestAdapter version: 3.17.0 Using: C# and Selenium Below is an example of a typical feature file we are working on: Test.feature Sce ...
When attempting to install the WebDriverManager reference from the Nuget Package Manager in my code, an error occurs. I have attempted to update and degrade the .Net framework but without success. Is it possible to use WebDriverManager 2.7.0 with .Net fram ...
As a tester specializing in automation, I have been exploring the use of WebDriver and pageObjects for running tests with NUnit. However, I am facing a challenge when it comes to executing tests in a predefined order. Our current GUI automation solution in ...
I am currently developing Selenium webdriver tests in Visual Studio with C# for regression testing. I have chosen NUnit as my testing framework. My goal is to parameterize the URL so that the same set of tests can be executed against various deployments u ...
It is essential for me to have a single file or class that allows me to determine which tests should be run. I am aware of TestNG for Java, but I haven't been able to find anything similar for C# through my searches on Google or Stack Overflow. Currently ...