[Cucumber] not able to rerun failed test cases from rerun.txt file
(too old to reply)
Murali krishna
2018-03-06 22:01:16 UTC
we are planning to implement rerun the failed test cases and i have written
another runner file to run the failed sceanrios from rerun.txt file.

*First Runner file:*

package com.test;

import org.junit.runner.RunWith;
import org.testng.annotations.AfterSuite;

import cucumber.api.CucumberOptions;
import cucumber.api.junit.*;

import com.test.*;


@CucumberOptions(features = ".",

tags = { "@TC010,@TC011" },
monochrome = true, plugin = { "pretty",
"json:target/report.json" },
glue = "com.test",
public class RunWebATSuite {


*Second Runner File:*

package com.test;

import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;

import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;

monochrome = true,

features = {"@target/cucumber-report/runwebat/rerun.txt"},//Cucumber
picks the failed scenarios from this file
plugin = {

glue = "com.test"

public class _RunWebATSuite {

First runner file is creating teh rerun.txt file with failed
scenarios(below format).But it is not rerunning the failed test cases.


<Loading Image...>

please help on this how to rerun the failed test cases.
Posting rules: http://cukes.info/posting-rules.html
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.