Skip to content

Instantly share code, notes, and snippets.

View thebeekeeper's full-sized avatar

Nick Gamroth thebeekeeper

View GitHub Profile
WorkingSet : myWs {
BackgroundColour: RGB(0, 153, 0),
ActiveMaskId: defaultMask,
Selectable: True,
VersionLabel: ' 1',
Children [
Reference(os, 5, 27)
]
}
public class ButtonPressFeature
{
[Scenario]
public void ButtonIncrement(int updatedValue)
{
"Given a running VT client".x(() => { });
"When the operator presses the increment button".x(() => { });
"Then the output number should increment".x(() => { });
public interface IClientCounterPage : IPage
{
IStatic ButtonCounter { get; set; }
IClickable IncrementButton { get; set; }
}
public class ClientCounterPageMap : PageMap<IClientCounterPage>
{
public ClientCounterPageMap()
{
[Fact]
public void IncrementButtonUpdatesOutputNumber()
{
// Start our client and activate it on the VT
_test.StartVtClient();
var p = _test.GetPage<IWorkingSetMenu>();
p.TestClientIcon.Click();
// Get a reference to the first DataMask
var page = _test.GetPage<IClientCounterPage>();
// Connection is the generic type that applications will use
function Connection(network) {
console.log("Creating Connection");
// a Connection will take a dependency on a specific kind of network
Connection.prototype.send = network.send;
}
// SampleNetwork is a type representing a specific kind of network connection (BT/UDP/TCP/whatever)
[TestMethod]
public void SampleApp_AddNote()
{
var desiredCaps = new DesiredCapabilities();
desiredCaps.SetCapability("device", "Android");
desiredCaps.SetCapability("browserName", "");
desiredCaps.SetCapability("version", "4.2");
desiredCaps.SetCapability("app", "http://appium.s3.amazonaws.com/NotesList.apk");
desiredCaps.SetCapability("app-package", "com.example.android.notepad");
desiredCaps.SetCapability("app-activity", ".NotesList");