Skip to content

Instantly share code, notes, and snippets.

@Arpit360
Created March 31, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arpit360/a07ac7a2beffb85cd0cc to your computer and use it in GitHub Desktop.
Save Arpit360/a07ac7a2beffb85cd0cc to your computer and use it in GitHub Desktop.
using System;
using System.IO;
using System.Linq;
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.UITest.Queries;
namespace TestCloudTest1
{
[TestFixture]
public class Tests
{
IApp app;
[SetUp]
public void BeforeEachTest()
{
DeployAppOnDevice();
}
void DeployAppOnDevice()
{
string apkPath = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.Parent.FullName;
app= ConfigureApp.Android.StartApp();
}
[Test]
public void AppLaunches()
{
app.Screenshot("First screen.");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment