Dev Cucumber

by UnionUp

A NativeScript plugin to help integrate and run Cucumber tests with Appium

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
STATS

80 downloads in the last month

13 downloads in the last week

0 downloads in the last day