[ 
https://issues.apache.org/jira/browse/SUREFIRE-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16412523#comment-16412523
 ] 

ASF GitHub Bot commented on SUREFIRE-1372:
------------------------------------------

adarshkv commented on issue #150: SUREFIRE-1372 Filter tests to be rerun by 
description
URL: https://github.com/apache/maven-surefire/pull/150#issuecomment-375872140
 
 
   @mpkorstanje -- Thank you.. I did try by providing @CucumberOptions(junit = 
"--no-step-notifications") . but no luck.. I need each step to be show in my 
report.
   
   Please find below my runner file  - Parallel01it.java (parallel execution)
   
   @RunWith(Cucumber.class)
   @CucumberOptions(
           strict = true,
           features = 
{"/Automation/WOW-Automation-Web/src/test/resources/features/TestScenario.feature:5"},
           plugin = {"pretty", 
"junit:/Automation/Automation-Web/target/cucumber-parallel/1.xml", 
"html:/Automation/Automation-Web/target/cucumber-parallel/1", 
"json:/Automation/Automation-Web/target/cucumber-parallel/1.json", 
"rerun:/Automation/Automation-Web/target/cucumber-parallel/1.txt"},
           junit = "--no-step-notifications",
           monochrome = true,
               glue = {"steps"})
   
   
   **Below is the my XML file if I am using io.cucumber as group id for 
execution (cucumber-jvm v 2.4.0) --- Rerun works perfectly fine but testcase 
name is missing**
   
   Below is what I am getting at present:
   
   
![image](https://user-images.githubusercontent.com/33118961/37863208-9c2b116e-2fae-11e8-98aa-04854949928a.png)
   
   
     testcase name="Sign Up Verify That Error Message Is Shown If Any Of The 
Mandatory Field Is Left Blank" classname="Sign Up Verify That Error Message Is 
Shown If Any Of The Mandatory Field Is Left Blank" time="18.391"/>
   
   **Below is my XML file if i am using info.cukes as group ID for execution 
(cucumber-jvm v 1.2.5) -- Rerun doesnt work here but test case name is 
available.**
   
     testcase name="Given I am on the home page" classname="Scenario: Sign Up 
Verify That Error Message Is Shown If Any Of The Mandatory Field Is Left Blank" 
time="0"/>
     testcase name="When I click on Login Profile on home page" 
classname="Scenario: Sign Up Verify That Error Message Is Shown If Any Of The 
Mandatory Field Is Left Blank" time="0"/>
     testcase name="And I click on sign up in login page" classname="Scenario: 
Sign Up Verify That Error Message Is Shown If Any Of The Mandatory Field Is 
Left Blank" time="0"/>
     testcase name="Then I click on Sign Up" classname="Scenario: Sign Up 
Verify That Error Message Is Shown If Any Of The Mandatory Field Is Left Blank" 
time="0"/>
     testcase name="And I should see the valid message "The sign up was 
not successful." and "There are 6 field(s) that require your 
attention."" classname="Scenario: Sign Up Verify That Error Message Is 
Shown If Any Of The Mandatory Field Is Left Blank" time="0"/>
     testcase name="And I should see error message for first name "First 
name is required."" classname="Scenario: Sign Up Verify That Error Message 
Is Shown If Any Of The Mandatory Field Is Left Blank" time="0.008"/>
     testcase name="And I should see error message for last name "Last 
name is required."" classname="Scenario: Sign Up Verify That Error Message 
Is Shown If Any Of The Mandatory Field Is Left Blank" time="0"/>
     testcase name="And I should see error message for email address 
"Email address is required."" classname="Scenario: Sign Up Verify 
That Error Message Is Shown If Any Of The Mandatory Field Is Left Blank" 
time="0"/>
     testcase name="And I should see error message for password "Password 
is required."" classname="Scenario: Sign Up Verify That Error Message Is 
Shown If Any Of The Mandatory Field Is Left Blank" time="0"/>
     testcase name="And I should see error message for preferred contact number 
"Phone number is required."" classname="Scenario: Sign Up Verify That 
Error Message Is Shown If Any Of The Mandatory Field Is Left Blank" time="0"/>
     testcase name="And I should see error message for delivery address 
"Address is required."" classname="Scenario: Sign Up Verify That 
Error Message Is Shown If Any Of The Mandatory Field Is Left Blank" time="0"/>
     testcase name="Scenario: Sign Up Verify That Error Message Is Shown If Any 
Of The Mandatory Field Is Left Blank" classname="Scenario: Sign Up Verify That 
Error Message Is Shown If Any Of The Mandatory Field Is Left Blank" 
time="1.288"/>
   
   
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Rerunning failing tests fails in combination with 
> Description#createSuiteDescription
> ------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1372
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1372
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.20
>            Reporter: M.P. Korstanje
>            Assignee: Tibor Digana
>            Priority: Major
>             Fix For: 2.21.0
>
>
> When using surefire to rerun failing tests created by a Runner that uses 
> {noformat}Description#createSuiteDescription{noformat} with a human readable 
> name rather then a class name the following stack trace occurs:
> {code}
> org.apache.maven.surefire.testset.TestSetFailedException: Unable to create 
> test class 'Scenario: Fail when running'
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeFailedMethod(JUnit4Provider.java:385)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:292)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
> Caused by: java.lang.ClassNotFoundException: Scenario: Fail when running
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeFailedMethod(JUnit4Provider.java:379)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:292)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to