How do i setup my NUnit class to know about BlackBerry? Let me say that I know how to setup my main project with BB. Have done many already and it works fine. I know how to use NUnit in a project that doesn't have BB. But the second I put an NUnit project in my BB project it fails to run. Below are the messages I get followd by my NUnit class.
ERROR
Full log file: /var/folders/kg/jhnqp495385g531x56_p5360wh1xtj/T/uitest/log-2018-11-28_13-50-09-898.txt
iOS test running Xamarin.UITest version: 2.2.4
Attempting IDE connection through pipe e116327554ec49e7ab8156ae92468795.
Skipped IDE integration, connection failed.
1 - ClearData:
bundleId:<removed for security>
deviceId: 3ca71959a66e4163d16e07120a31238b5c92071a
3 - LaunchTestAsync:
deviceId: 3ca71959a66e4163d16e07120a31238b5c92071a
NUnit Class
namespace MyGDMSTDDTest
{
//[TestFixture(Platform.Android)]
[TestFixture(Platform.iOS)]
public class Tests
{
IApp app;
Platform platform;
public Tests(Platform platform)
{
this.platform = platform;
}
[SetUp]
public void BeforeEachTest()
{
//app = AppInitializer.StartApp(platform);
app = ConfigureApp.iOS.DeviceIp("3ca71959a66e4163d16e07120a31238b5c92071a").InstalledApp("com.gdms.mygdmsprod").PreferIdeSettings().EnableLocalScreenshots().StartApp();
}
[Test]
public void AppLaunches()
{
AppResult[] results = app.WaitForElement(c => c.Marked("Welcome to MYGDMS"));
app.Screenshot("Welcome screen.");
Assert.IsTrue(results.Any());
}
}
}
Questions » Recent Q&A » Xamarin Forms and NUnit - Test Driven Development (TDD)
Xamarin Forms and NUnit - Test Driven Development (TDD)
How do i setup my NUnit class to know about BlackBerry? Let me say that I know how to setup my main project with BB. Have done many already and it works fine. I know how to use NUnit in a project that doesn't have BB. But the second I put an NUnit project in my BB project it fails to run. Below are the messages I get followd by my NUnit class.
ERROR
Full log file: /var/folders/kg/jhnqp495385g531x56_p5360wh1xtj/T/uitest/log-2018-11-28_13-50-09-898.txt
iOS test running Xamarin.UITest version: 2.2.4
Attempting IDE connection through pipe e116327554ec49e7ab8156ae92468795.
Skipped IDE integration, connection failed.
1 - ClearData:
bundleId:<removed for security>
deviceId: 3ca71959a66e4163d16e07120a31238b5c92071a
3 - LaunchTestAsync:
deviceId: 3ca71959a66e4163d16e07120a31238b5c92071a
NUnit Class
namespace MyGDMSTDDTest
{
//[TestFixture(Platform.Android)]
[TestFixture(Platform.iOS)]
public class Tests
{
IApp app;
Platform platform;
public Tests(Platform platform)
{
this.platform = platform;
}
[SetUp]
public void BeforeEachTest()
{
//app = AppInitializer.StartApp(platform);
app = ConfigureApp.iOS.DeviceIp("3ca71959a66e4163d16e07120a31238b5c92071a").InstalledApp("com.gdms.mygdmsprod").PreferIdeSettings().EnableLocalScreenshots().StartApp();
}
[Test]
public void AppLaunches()
{
AppResult[] results = app.WaitForElement(c => c.Marked("Welcome to MYGDMS"));
app.Screenshot("Welcome screen.");
Assert.IsTrue(results.Any());
}
}
}