Hot answers tagged

5

Yes, you can use NUnit for functional testing. But still it is a unit-testing framework. No, you are not creating unit-tests by using a unit-testing framework to write functional tests. A unit-test is testing just a single methods input and output, by writing end-2-end tests it by definition cannot be a unit-test. :) Unit testing frameworks are often ...


2

You can run a single test from the command line using the nunit-console. Open command-prompt and change directory to the NUnit bin installation folder. To run a single test use: nunit-console /run:TestsToRun <path_to_dll> E.g. If your test has the following structure namespace TestsNamespace { public class TestsClass { //your tests ...


2

After running my tests in NUnit GUI I can manually go into (Tools->Save Result as XML) then a file explorer is popped allowing me to select where the XML file is saved.


1

Is NUnit only a Unit testing framework? NUint is a .Net port (commonly used with Visual Studio) of JUnit (which is commonly used with Eclipse). So it's different than the standard 'unit tests' in a VS project. Generally those unit test are testing each function of the application. xUnit tests do test through the UI level. I think your hangup is on the ...


1

Why not just place all the frame handles the driver currently has into a list then you will have all the window handles into a list and can target each individual one. Or use the findElements method, plural, since they all have the same id. public void navigateThroughMultipleIframes() { String parentWindow = driver.getWindowHandle(); ...



Only top voted, non community-wiki answers of a minimum length are eligible