forked from stirno/FluentAutomation
-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Maarten Groeneweg edited this page Apr 13, 2015
·
5 revisions
There are two ways of installing WbTstr.Net, if you have VS2013 you can download our extension. If you use another version of Visual Studio or if you want more control over the project layout you can also load it via NuGet.
The easiest way to get started with WbTstr.Net is to install our Visual Studio 2013 Extension from the Visual Studio Gallery [Link will follow soon].
- Install the Extension from [insert link]
- Simply create a new project of the type "Mirabeau WbTstr.Net"
- Build to retrieve the dependencies
- Create a new unit test project following the instructions of your favourite unit test framework.
- Type
Install-Package WbTstr.Net.SeleniumWebdriverin the Package Manager Console
If you installed the VS extension you can add a new test with "add new item" (Ctrl+Shift+A) and select the WbTstr.Net.TestClass.
using FluentAutomation;
using NUnit.Framework;
namespace FLuent101.Examples
{
public class MyFirstTest : FluentTest
{
public MyFirstTest()
{
WbTstr.Configure()
.PreferedBrowser().IsChrome();
WbTstr.Bootstrap();
}
[TestCase]
public void Test1()
{
I.Open("http://www.mirabeau.nl");
I.Assert.Exists("H1");
}
}
}