gwen-interpreter / gwen-web

Web automation engine for Gwen
https://gweninterpreter.org
Apache License 2.0
54 stars 18 forks source link

Variable which is defined in properties file is not accessible within StepDef which uses data table #91

Closed sse2ebdd closed 2 years ago

sse2ebdd commented 2 years ago

Steps to reproduce -

  1. Create feature file with below content
Feature: Test

@DataTable(header="top")
@StepDef
Scenario: I test accessing variable in DSL which uses data table
And database name2 is "${dbSid}"

Scenario: Test
And database name is "${dbSid}"
And I test accessing varible in DSL which uses data table
| dummy_header |
| dummy_value  |
  1. Create test.properties file with one property --> dbSid=TEST
  2. Now run feature file (import properties using -c/-p option)
  3. GWEN 3.0.8 is not able to access variable defined in properties file within StepDef which uses data table

datatable-dsl-issue html

Env Gwen Version - 3.0.8 Chrome Driver - Latest (96)

bjuric commented 2 years ago

Fixed in v3.0.9. Thanks

sse2ebdd commented 2 years ago

Verified this issue on GWEN v3.0.9. It's working as expected, hence closing this issue.