Cucumber+Appium - 'CukesRunner' class is not running and displays exit code 0 in console

Viewed 30

I have setup a Gradle project to automate an Android application using Cucumber and Appium with Java. I also wanted to use POM to capture the elements page-wise. The project structure looks like:

enter image description here

I wants to add Extent Report to get testcase execution status. Now when i am running CukesRunner file:

package runners;

import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;

@RunWith(Cucumber.class)
@CucumberOptions(
        plugin = {
                "json:target/cucumber.json",
                "html:target/default-html-reports",
                "rerun:target/rerun.txt"
        },
        features = {"src//test//resources//Features"},
        glue = {"stepdefinition"},
        dryRun = false,
        tags = "@paybackTest"
)

public class CukesRunner {
}

It displays the exit code 0 error with some unknown error:

enter image description here

My appium server is running on 127.0.0.1:4723 and also an Android device connected through USB (i cross-checked it with 'adb devices').

0 Answers
Related