это образец:
import cucumber.api.Scenario;
public class MyStepdefs {
private Scenario scenario;
@Before
public void before(Scenario scenario) {
this.scenario = scenario;
}
@Given("^I print a text in Cucumber report$")
public void print() {
scenario.write("This goes into the report(s)\n");
}
}
по умолчанию, css - это то же самое (embedded-text
)
.cucumber-report .step .embedded-text {
background: #dddddd;
}
Я хочу написать больше одного стиля текста в моем отчет (тип информации A, тип информации B, ...).