Accessing data in an object array with Java -
i'm working cucumber , java. retrieve path of file itestresult
.
i'm retrieving parameters with:
object[] test = testresult.getparameters();
however thing can access seem first objects name , nothing else.
test = {object[1]@1492} 0 = {cucumberfeaturewrapper@1493} "links @ edm documents view," cucumberfeature = {cucumberfeature@1516} path = "test/01-automation.feature" feature = {feature@1518} cucumberbackground = null currentstepcontainer = {cucumberscenario@1519} cucumbertagstatements = {arraylist@1520} size = 1 i18n = {i18n@1521} currentscenariooutline = null
i cannot see anyway of retrieving path = "test/01-automation.feature"
under cucumber feature.
have tried ((cucumberfeaturewrapper)test[0]).getcucumberfeature().getpath()
?
Comments
Post a Comment