java.lang.Object
org.qubership.atp.mia.model.impl.testdata.parsed.Description

public class Description extends Object
  • Constructor Details

    • Description

      public Description(String name, boolean onMainSheet, Map<String,String> params, MiaContext miaContext)
      Constructor with sort params of description.
      Parameters:
      name - name of description
      onMainSheet - is Description on Main or TestData sheet
      params - all params
      miaContext - miaContext
    • Description

      public Description(String name, Map<String,String> params, MiaContext miaContext)
      Constructor with sort params of description.
      Parameters:
      name - name of description
      params - all params
      miaContext - miaContext
    • Description

      public Description(String name, boolean onMainSheet, Map<String,String> params, MiaContext miaContext, boolean isSort)
      Constructor with sort or not of params of description.
      Parameters:
      name - name of description
      onMainSheet - is Description on Main or TestData sheet
      params - all params
      miaContext - miaContext
      isSort - sort is needed or not
  • Method Details

    • addValidatedParam

      public void addValidatedParam(String key, String value)
      Add validated parameter.
      Parameters:
      key - key
      value - value
    • updateValidatedParam

      public void updateValidatedParam(String key, String value, ValidatedParameters.State state, String expectedValue)
      Add validated parameter.
      Parameters:
      key - key
      value - value
      state - state of validation
      expectedValue - Expected, where as value contains actualValue
    • addOtherParam

      public void addOtherParam(String key, String value, TestDataWorkbook testDataWorkbook)
      Add other parameter (and add to each scenario).
      Parameters:
      key - key
      value - value
      testDataWorkbook - testDataWorkbook
    • getAllParams

      public LinkedHashMap<String,String> getAllParams()
      Gets all parameters.
      Returns:
      map of all parameters
    • isPassed

      public boolean isPassed()
      Gets state of validation.
      Returns:
      true if all validation is passed