NUnit is a unit-testing framework for all .Net languages

learn more… | top users | synonyms

5
votes
3answers
1k views

What is the best way to handle minor intermittent automation failures during cross browser testing?

I run Web Driver (.Net version) with SpecFlow as my test driver on some fairly general Cross - Browser scenarios so I often am rerunning tests as I add new ones, or clean up old automation. On ...
5
votes
2answers
2k views

NUnit: Global error method/event for handling exceptions

I'm looking for a way to catch exceptions globally in my NUnit project class library. So if one of my unit tests throws an exception, I can catch it in one spot. I don't want to surround each of my ...
4
votes
3answers
298 views

Can NUnit be used for Functional and Regression testing?

Now, here the confusion starts. I was creating some test cases using Selenium WebDriver with C# and thought of using a testing framework. My task is to create functional test cases which can later be ...
4
votes
5answers
27k views

Locating element by link text (anchor tag innerHTML) or xpath fails in Selenium 2.0 Webdriver

I'm using Selenium 2.0 web driver. My script keeps failing whenever I try locating something in my page. It throws an exception whether I locate the element by LinkText or by XPath. ...
3
votes
2answers
5k views

Selenium 2.0 WebDriver: Clearing Session Data

Is there a way to clear out session data for a driver instance in WebDriver? My code is written in C# (and NUnit), but I'm not picky on the language for the answer.
3
votes
3answers
1k views

Is there an Interface to Run Selenium 2.0 WebDriver Test Cases other than NUnit?

Is it possible to wrap around Selenium 2.0 WebDriver Test Cases with anything other than NUnit for C# code? Or perhaps NUnit has a nice application to do this with? If not, how can I wrap around the ...
3
votes
2answers
296 views

Is NUnit a viable choice for a starting long term project these days?

I currently participate on the decision to pick a unit testing framework for a bigger long term project. NUnit, being an ubiquitous unit testing tool, would make it a natural choice for me, but not so ...
3
votes
1answer
1k views

Deploying Selenium RC tests with Teamcity

I'm looking at setting up my Selenium tests in a QA environment which will run with a Teamcity build each time. This seems to be the best resource I've come across so far where someone has gone ...
3
votes
1answer
253 views

Not displaying nunit tests in visual studion after NUnit integration in Visual Studio

I have downloaded the vISUAL Nunit 2010 and also edited the .vbproj file guid. But still Visual Studio is not displaying nunit tests. Any idea what I am missing here.
3
votes
1answer
3k views

Is there any framework for UI automation testing for Unity3D?

Does anyone know any framework that is compatible/integrated with Unity3D? I'm interested in Unit, Integrated and UI testing.
2
votes
2answers
371 views

Execute a particular test using command prompt and Selenium, NUnit, Test cases written in C#

I have written a number of test cases in C# for UI which uses Selenium Webdriver (I am new to Selenium). I would like to run a particular test case out of N number of test cases through command ...
2
votes
1answer
120 views

Is it possible to change the location of NUnits TestResult.xml

When running tests with the NUnit GUI application, is it possible to change the location of where NUnit creates the TestResult.xml file after the test has completed? It is usually created in the same ...
1
vote
1answer
875 views

Visual Studio 2012 + NUnit unit test integration

I am having a problem with integration my NUnit test integration. I have installed the test adapter for NUnit and also made sure that the extension is enabled, but no test are shown in the test ...
1
vote
1answer
202 views

Handling multiple Iframes with same name

I am trying to navigate on a web browser that has multiple iframes that are all tagged with the id of "InlineDialog_Iframe". When I try to switch to the window I get a stale reference exception, which ...
1
vote
1answer
593 views

Creating Test Suite dynamically in NUnit

I would like to create a test suite using NUnit. In java, I could use the name of the classes and do something like this: TestSuite suite = new TestSuite(); suite.addTest(new ...
1
vote
3answers
449 views

Nunit not working

I'm new to NUnit and I just download it and installed .But while opening project i got exception as " Load Failed" System.IO.FileNotFoundException... Why am I getting this exception? Please help ...
0
votes
1answer
1k views

Test recording with Selenium IDE vs manual programming test framework

I'm just beginner in this field. I have already created simple tests using Selenium in .NET environment together with NUnit. I also hard coded the same or similar tests for my framework. My question ...
0
votes
2answers
68 views

Inconsistent behaviour of Click() in Selenium

I'm working on a Product automation(Web CMS), where element.Click() shows the inconsistent behaviour. Basically we are using, Selenium + Nunit GUI(unit testing framework) - To run the test cases from ...
0
votes
1answer
70 views

How to see ongoing progress of my Selenium tests run in NUnit on Jenkins?

I am running my tests in Selenium using NUnit and Jenkins and it takes more then 2 hours to run all tests. I want to see the progress of the tests for monitoring if everything is OK like a team city ...
-2
votes
2answers
164 views

What Assert.AreEqual(true, true); does? [closed]

Can any one explain Assert.AreEqual(true, true); with proper example and explanation?