0

Is there any way by which I can map the specific step while executing the different feature file. Output of these steps will be input to other steps and there implementation will be differ

Feature: LO Register Loan
  @LOLoanCreation
  Scenario Outline: Successful loan creation
    Given LO user have a valid token
    When  user creates the loan
    Then  Loan should be created with unique loan number 
Feature: Borrower Register Loan
  @BorrowerLoanCreation
  Scenario Outline: Successful loan creation
    Given Borrower user have a valid token
    When  user creates the loan
    Then  Loan should be created with unique loan number

In above example features user creates the loan is a repeated step and there definition will be different and output of this steps will be a input to other step

@After(value="@BorrowerLoanCreation")
public void boorowerLoanCreation(){}

@After(value="@LOLoanCreation")
public void boorowerLoanCreation(){}

Similar to above can be achieved for same step definitions?

Thilakraj
  • 63
  • 1
  • 10

0 Answers0