All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qmetry.qaf.automation.cucumber.bdd2.model.BDD2Scenario Maven / Gradle / Ivy

Go to download

Functional test automation framework for web, mobile-web, mobile native and web-service

There is a newer version: 4.0.0-RC3
Show newest version
package com.qmetry.qaf.automation.cucumber.bdd2.model;


import gherkin.ast.ScenarioDefinition;
import io.cucumber.core.gherkin.Location;
import io.cucumber.core.gherkin.Scenario;
import static com.qmetry.qaf.automation.cucumber.bdd2.model.BDD2Location.from;

public class BDD2Scenario implements Scenario {

	protected final ScenarioDefinition scenarioDefinition;
    protected Location location;

    BDD2Scenario(ScenarioDefinition scenarioDefinition) {
        this.scenarioDefinition = scenarioDefinition;
        location = from(scenarioDefinition.getLocation());
    }

    @Override
    public Location getLocation() {
        return location;
    }

    @Override
    public String getKeyWord() {
        return scenarioDefinition.getKeyword();
    }

    @Override
    public String getName() {
        return scenarioDefinition.getName();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy