Contributions
Re: How do I ignore a piece of data in a feature cucumber file?
Hello AlexKaras! Yes you are right. My question does not apply to TestComplete. It turns out that I incorrectly chose the resource where I wrote the question. Ready to delete the question, so as not to violate the policy of posting questions. I apologize! Yes, I'm from Russia and looking for an answer on foreign resources)) it seems like it's normal practice))1.9KViews0likes1CommentRe: How do I ignore a piece of data in a feature cucumber file?
Hello sonya_m andtristaanogre and maybe someone who knows the solution :-) I added the project to github at https://github.com/gitosic/gradest, to show the essence of the problem in more detail. True, I found an alternative solution, but I'm not sure if this is the best option -https://github.com/gitosic/gradest/blob/18a076a55a0e3741cd42e28b4e859cf450b0b973/src/test/java/com/example/StepDefinitions.java#L20 Once again, I will outline the problem. On the https://github.com/gitosic/gradest/blob/18a076a55a0e3741cd42e28b4e859cf450b0b973/src/test/java/com/example/StepDefinitions.java#L16 line you need to check that there would be a positive check result. Run test: RunCucumberTest2KViews0likes3CommentsHow do I ignore a piece of data in a feature cucumber file?
English:How do I ignore a piece of data in a feature cucumber file? Russian: Как в feature файле cucumber сделать игнорирование части данных? Example: English: I want the test to work positively. The text "ignoring_String" must be ignored. Russian: Я хочу, чтобы тест отработал положительно. Текст «ignoring_String» должен быть игнорирован. Feature file: When compare text with reference |Stream launched 2019-10-2315:40 by admin| |Stream launched ignoring_String by admin| javaclass: import io.cucumber.java.en.When; import java.util.List; import static org.junit.Assert.assertTrue; public class MyTestStepdefs { @When("compare text with reference") public void compareTextWithReference(io.cucumber.datatable.DataTable dataTable) { List<List<String>> rows = dataTable.asLists(String.class); String text = "Stream launched 2019-10-2315:40 by admin"; assertTrue(text.equals(rows.get(0).get(0))); assertTrue(text.equals(rows.get(1).get(0))); } } Added a link to the repository -https://github.com/gitosic/gradest.gitSolved2.1KViews0likes6Comments