Forum Discussion

Venkat675's avatar
Venkat675
Occasional Visitor
6 years ago

can we add doc_string from step definition(.java) instead of feature file?

We have a requirement in our Java based project to attach some runtime json/text data in doc string, which should be displayed in test report. do we have feature enabled? can you share some examples?

Example:
public void addDocString(Step step){
step.setDocString("text", "Some example doc string text", 1)
}