Skip to content

Variables from the table don't work in After story composite step #410

@AngelinaMarchyk

Description

@AngelinaMarchyk

Describe the bug
Variables we use in composite step for Lifecycle: After are not resolved and step fails

To Reproduce
Some part of the story:

Lifecycle:
After:
Scope: STORY
When I delete taxId created for ABO registration
Examples:
/regression/tables/${locale}/Regression.table

So we have variables in /regression/tables/${locale}/Regression.table

Composite itself:

Composite: When I delete taxId created for ABO registration
When the condition `#{eval("${locale}" =~ ["BE", "ES", "ID", "IN", "KR", "NL", "PT", "TH"])}` is true I do
|step                                                                                                                                                                                          |
|When I set request headers for affiliate with affiliate code '<AffCd>'                                                                                                                        |
|When I send HTTP DELETE to the relative URL '/accounts/<AffCd>-#{removeWrappingDoubleQuotes(${aboNum})}/parties/#{removeWrappingDoubleQuotes(${partyId})}/taxes/<taxTypeCd>?cntryCd=<cntryCd>'|
|Then the response code is equal to '200'                                                                                                                                                      |
|When I set request headers for affiliate with affiliate code '<AffCd>'                                                                                                                        |
|When I send HTTP GET to the relative URL '/accounts/<AffCd>-#{removeWrappingDoubleQuotes(${aboNum})}/parties/#{removeWrappingDoubleQuotes(${partyId})}/taxes/<taxTypeCd>'                     |
|Then the response code is equal to '400'                                                                                                                                                      |
|Then a JSON element by the JSON path '$..message' is equal to 'NO DATA FOUND'                                                                                                                 |

And variables like <AffCd> or <taxTypeCd> are placed in Regression.table
Expected behavior
The composite with variables works in "Lifecycle: After" part

Execution environment (please complete the following information):

  • Vividus version: 0.2.1
  • Java: 13

Archive with test story, table file, composite and Allure report to reproduce this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions