gauge-java icon indicating copy to clipboard operation
gauge-java copied to clipboard

Only Gauge definitions available within package_to_scan should be considered

Open sswaroopgupta opened this issue 7 years ago • 2 comments

Actual behavior All the definitions in the project are considered.

Steps to replicate

  • Create a java_maven project with grp1 as the default package
  • Create another package one.level
  • Add a new step implementation to the new package
  • Add a custom Parser to the new package
  • Use the step in the example.spec with a custom parameter defined
  • Configure package_to_scan = grp1
  • Reload the project
  • Run the specifications

All the steps are successfully executed. But, the definitions outside grp1 should not be considered

Sample project - art2.zip

Version

Gauge version: 1.0.1.nightly-2018-06-19
Commit Hash: 583ef1d

Plugins
-------
java (0.6.9.nightly-2018-06-12)

Blocks #161

sswaroopgupta avatar Jun 26 '18 05:06 sswaroopgupta

Fix should be available in nightly >= 28 June 2018

BugDiver avatar Jun 28 '18 11:06 BugDiver

Only Custom Parameters defined within the package_to_scan should be considered. Currently it considers all definitions.

Steps to replicate Same as the original issue.

sswaroopgupta avatar Jul 02 '18 06:07 sswaroopgupta