Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate scenarios are appearing in reports for parallel execution #28

Open
ritunegi04 opened this issue Nov 5, 2020 · 12 comments
Open

Comments

@ritunegi04
Copy link

We are getting duplicate scenarios in report for parallel execution. For now, we executed our tests for two instances so we are getting two rows for each scenario. The scenario should appear only. Could you please help us with this.

Screenshot 2020-11-05 at 4 31 42 PM

@grasshopper7
Copy link
Owner

Can u add the feature file? Does the feature file and\or scenarios have same names?

@ritunegi04
Copy link
Author

No, the feature file has unique scenario and features.

@grasshopper7
Copy link
Owner

Attach the feature file(s).

@ritunegi04
Copy link
Author

Here is the feature file :

Feature: Account Dashboard Validation

  @ValidateAccountsOnDashboard
  Scenario Outline: Validate accounts on dashboard page for "<scenario>" type account
    Given User login to US Bank app with usertype "<scenario>"
    Then User validates the greeting label on account dashboard page
    Then User validates the date label on account dashboard page
    When User validates accounts label on Account Dashboard page
    Then User validates account name and balance on Account Dashboard page
    Then User validates available credit balance for accounts on Account Dashboard page

    @DDA
    Examples:
      | scenario              |
      | checking account only |
      | saving account only   |
      | deposit accounts      |

    @CCD
    Examples:
      | scenario             |
      | CCD account only     |
      | credit card accounts |

    @SLN
    Examples:
      | scenario         |
      | SLN account only |

    @BCD
    Examples:
      | scenario         |
      | BCD account only |

    @CDA
    Examples:
      | scenario         |
      | CDA account only |

    @BLN
    Examples:
      | scenario         |
      | BLN account only |

    @MAL
    Examples:
      | scenario         |
      | MAL account only |

    @LEA
    Examples:
      | scenario         |
      | LEA account only |

    @SEL
    Examples:
      | scenario         |
      | SEL account only |

    @LOC
    Examples:
      | scenario         |
      | LOC account only |

    @EXL
    Examples:
      | scenario         |
      | EXL account only |

    @UNL
    Examples:
      | scenario         |
      | UNL account only |

    @INV
    Examples:
      | scenario                           |
      | investment and retirement accounts |

    @LoanLEA
    Examples:
      | scenario                        |
      | loans lines and leases accounts |

    @DDAINV
    Examples:
      | scenario                                        |
      | both deposit and investment retirement accounts |

    @DDALOCLEA
    Examples:
      | scenario                                       |
      | both deposit and loans lines & leases accounts |

    @DDACCD
    Examples:
      | scenario                              |
      | both deposit and credit card accounts |

    @INVCCD
    Examples:
      | scenario                                            |
      | both investment retirement and credit card accounts |

    @INVLOCLEA
    Examples:
      | scenario                                                     |
      | both investment retirement and loans lines & leases accounts |

    @CCDLoanLEA
    Examples:
      | scenario                                           |
      | both credit card and loans lines & leases accounts |

  @ValidateQuickNavigationMenu
  Scenario Outline: Verify Quick Action navigation menu for "<scenario>" type account
    Given User login to US Bank app with usertype "<scenario>"
    Then User validates the quick action navigation menu at the bottom of dashboard page
    Then User validates Pay Bill and Transfers Navigation menu options
    Then User validates Deposit Check Navigation menu options
    Then User validates Send Money Navigation menu options
    Then User verifies the Explore Products option in quick action navigation menu

    @DDA
    Examples:
      | scenario         |
      | deposit accounts |

    @INV
    Examples:
      | scenario                           |
      | investment and retirement accounts |

    @CCD
    Examples:
      | scenario             |
      | credit card accounts |

    @LoanLEA
    Examples:
      | scenario                        |
      | loans lines and leases accounts |

  @ValidateOpenNewAccount
  Scenario Outline: Verify open new account functionality for "<scenario>" type account
    Given User login to US Bank app with usertype "<scenario>"
    Then User validates the Open New Account button on account dashboard page
    Then User validates the Open New Account page
    And User validates the account dashboard page on routing back to it


    @DDA
    Examples:
      | scenario          |
      | deposit accounts  |
      | prequal user only |

    @ThirdParty
    Examples:
      | scenario              |
      | third party user only |

  @ValidateCovidBanner
  Scenario Outline: Validate covid banner on dashboard page for "<scenario>" type account
    Given User login to US Bank app with usertype "<scenario>"
    Then User validates the covid banner on Account Dashboard page
    Then User validates the covid banner page
    When User clicks on cancel button
    Then User validates that it routes to the Account Dashboard page

    @DDA
    Examples:
      | scenario         |
      | deposit accounts |

    @INV
    Examples:
      | scenario                           |
      | investment and retirement accounts |

    @CCD
    Examples:
      | scenario             |
      | credit card accounts |

    @LoanLEA
    Examples:
      | scenario                        |

  @ValidateExternalAssetsOnDashboard @Regression @Smoke @External
  Scenario Outline: Validate External Assets on dashboard page
    Given User login to US Bank app with usertype "<scenario>"
    Then User validates external assets label on Account Dashboard page
    Then User validates total assets on Account Dashboard page
    Then User validates assets name and balance on Account Dashboard page

    @DDA
    Examples:
      | scenario               |
      | external accounts only |

  @ValidateExternalLiabilitiesOnDashboard @Regression @Smoke @External
  Scenario Outline: Validate External Liabilities on dashboard page
    Given User login to US Bank app with usertype "<scenario>"
    Then User validates external liabilities label on Account Dashboard page
    Then User validates total liabilities on Account Dashboard page
    Then User validates liabilities name and balance on Account Dashboard page

    @DDA
    Examples:
      | scenario               |
      | external accounts only |

  @ValidateEAAButtonOnDashboard @Regression @Smoke @External
  Scenario Outline: Validate EAA button on dashboard page
    Given User login to US Bank app with usertype "<scenario>"
    When User clicks on external accounts
    Then User validates external accounts page
    Then User clicks on back button
    Then User validates that it routes to external accounts button on Account Dashboard page

    @DDA
    Examples:
      | scenario               |
      | external accounts only |

  @ValidateSharedAccessAccount @Regression @Smoke
  Scenario Outline: Validate Shared Access Account on dashboard page
    Given User login to US Bank app with usertype "<scenario>"
    Then User validates account value of manage shared account must be true
    When User clicks on manage shared accounts
    Then User validates manage shared accounts page
    Then User clicks on back button
    Then User validates that it routes to manage shared accounts button on Account Dashboard page

    @DDA
    Examples:
      | scenario           |
      | shared access only |

  @ValidateViewTransactionLimit @Regression @Smoke
  Scenario Outline: Validate View Transaction Limit on dashboard page
    Given User login to US Bank app with usertype "<scenario>"
    Then User navigates to view transaction page and validate it
    Then User clicks on back button
    Then User validates that it routes to view transaction button on Account Dashboard page

    @DDA
    Examples:
      | scenario              |
      | view transaction only |

  @ValidateMIDAccountsOnAccountPicker @Regression @Smoke
  Scenario Outline: Validate accounts list dropdown on account overview page
    Given User login to US Bank app with usertype "<scenario>"
    Then User validates no MID account name and balance present on Account Dashboard page
    When User clicks on first account on Customer Dashboard
    Then User validates no MID account type present in account picker list

    @DDA
    Examples:
      | scenario         |
      | deposit accounts |


@grasshopper7
Copy link
Owner

How r u executing this? Seems like u have 2 runners which are executing this feature file simultneously

@ritunegi04
Copy link
Author

We have just one runner class in which we are running feature file using DataProvider parallel attribute.

@grasshopper7
Copy link
Owner

which version of adapter are u using?

@ritunegi04
Copy link
Author

We are using 2.1.0.

@ritunegi04
Copy link
Author

@grasshopper7 Could you please help us in resolving this issue or suggest a version in which we would not face this issue.

@grasshopper7
Copy link
Owner

Try with the latest 2.5.0 and the spark report. The html report has been removed from extent report 5 and is no longer supported

@ritunegi04
Copy link
Author

Thanks for your response. We will try with this version and get back to you.

@grasshopper7
Copy link
Owner

Is this resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants