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

Nathaniel edited comment on SUREFIRE-1699 at 10/17/19 4:29 AM:
---------------------------------------------------------------

Hi [~tibordigana]

below is the surefire report over here you can see the run has happened twice 
where my requirement is if the first run failed due an error which contains a 
key word like "TimeOutException" then i don't want to run this scenario again 
as this will reduce my run time because i know that it will fail again.

 

 

-------------------------------------------------------------------------------
 Test set: smoke_pack_scenario002_run001_IT
 -------------------------------------------------------------------------------
 Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 559.745 s <<< 
FAILURE! - in smoke_pack_scenario002_run001_IT
 Scenario 1 - basic functionality  Time elapsed: 280.505 s <<< ERROR!
 org.openqa.selenium.TimeoutException: 
 Build info: version: '3.141.59', revision: 'e82be7d358', time: 
'2018-11-14T08:17:03'
 System info: host: 'HXB67003', ip: '10.204.5.88', os.name: 'Windows Server 
2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_201'
 Driver info: driver.version: unknown

Scenario 1 - basic functionality  Time elapsed: 271.472 s <<< ERROR!
 org.openqa.selenium.TimeoutException: 
 Build info: version: '3.141.59', revision: 'e82be7d358', time: 
'2018-11-14T08:17:03'
 System info: host: 'HXB67003', ip: '10.204.5.88', os.name: 'Windows Server 
2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_201'
 Driver info: driver.version: unknown

 

 

Thanks

 

 


was (Author: jnernest):
Hi [~tibordigana]

below is the surefire report over here you can see the run has happened twice 
where my requirement is if the first run failed due an error which contains a 
key word like "TimeOutException" then i don't want to run this scenario again 
as this will reduce my run time because i know that it will fail again.

 

 

-------------------------------------------------------------------------------
Test set: apc_smoke_pack_scenario002_run001_IT
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 559.745 s <<< 
FAILURE! - in apc_smoke_pack_scenario002_run001_IT
Scenario 1 - basic functionality  Time elapsed: 280.505 s <<< ERROR!
org.openqa.selenium.TimeoutException: 
Build info: version: '3.141.59', revision: 'e82be7d358', time: 
'2018-11-14T08:17:03'
System info: host: 'HXB67003', ip: '10.204.5.88', os.name: 'Windows Server 2008 
R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_201'
Driver info: driver.version: unknown

Scenario 1 - basic functionality  Time elapsed: 271.472 s <<< ERROR!
org.openqa.selenium.TimeoutException: 
Build info: version: '3.141.59', revision: 'e82be7d358', time: 
'2018-11-14T08:17:03'
System info: host: 'HXB67003', ip: '10.204.5.88', os.name: 'Windows Server 2008 
R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_201'
Driver info: driver.version: unknown

 

 

Thanks

 

 

> Skip Rerun when failures are due to Assertion Error
> ---------------------------------------------------
>
>                 Key: SUREFIRE-1699
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1699
>             Project: Maven Surefire
>          Issue Type: New Feature
>          Components: Junit 4.7+ (parallel) support
>    Affects Versions: 3.0.0-M3
>            Reporter: Nathaniel
>            Priority: Major
>
> Hi,
> we are running scripts in parallel in many places.
>  
>  * consider I have given rerunscriptcount as 5
>  * Surefire starts the scenarios and it fails due to Assertion error
>  * Then The script is being re run for additional 4 times  which is not 
> require
> Expected : To have a tag which we can use to exclude certain errors
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to