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

com.qmetry.qaf.automation.cucumber.bdd2.model.BDD2Example 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.TableRow;
import io.cucumber.core.gherkin.Example;
import io.cucumber.core.gherkin.Location;

/**
 * @author chirag
 *
 */
public class BDD2Example implements Example {

	private final int rowIndex;
	private Location location;

	BDD2Example(TableRow tableRow, int rowIndex) {
		this.rowIndex = rowIndex;
		this.location = BDD2Location.from(tableRow.getLocation());
	}

	@Override
	public String getKeyWord() {
		return null;
	}

	public String getName() {
		return "Example #" + rowIndex;
	}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy