nativescript-dev-cucumber
by marcbuils | v0.1.4
A NativeScript plugin to help integrate and run Cucumber tests with Appium
npm i --save nativescript-dev-cucumber
  • Version: 0.1.4
  • GitHub:
  • Downloads:
    • Last Day:   0
    • Last Week:  2
    • Last Month: 39

nativescript-dev-cucumber

A helper package to make running E2E Appium tests in NativeScript apps easier.

Usage

Install it with:

$ tns install cumcumber

It will produce a sample test below the features dir. Now, run it with:

$ npm run cucumber-android

or

$ npm run cucumber-ios-simulator

The tests are standard Cumcumber.js tests.

Getting started

Create a new NativeScript Application (if necessary):

$ tns create cucumberSample --ng

Update the template to add "automationText" attributes (for Angular2 NS applications).

app.component.html:

<StackLayout>
<Label text="Tap the button" class="title"></Label>

<Button text="TAP" (tap)="onTap()" automationText="tapButton"></Button>

<Label [text]="message" class="message" textWrap="true" automationText="messageLabel"></Label>
</StackLayout>

Install cucumber:

$ tns install cucumber

Execute tests:

$ npm run cucumber-android

or

$ npm run cucumber-ios-simulator