de.qytera.qtaf.cucumber.helper.CucumberTestNGPickleHelper Maven / Gradle / Ivy
package de.qytera.qtaf.cucumber.helper;
import de.qytera.qtaf.core.reflection.FieldHelper;
import io.cucumber.testng.Pickle;
/**
* Helper class that provides methods for extracting information from cucumber Pickle objects.
*/
public class CucumberTestNGPickleHelper {
private CucumberTestNGPickleHelper() {
}
/**
* Get Gherkin Pickle object from TestNG Pickle object.
*
* @param testngPickle PickleWrapper object
* @return Pickle object
*/
public static io.cucumber.core.gherkin.Pickle getPickle(Pickle testngPickle) {
return (io.cucumber.core.gherkin.Pickle) FieldHelper.getFieldValue(testngPickle, "pickle");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy