magento / magento2-functional-testing-framework

Magento2 Functional Testing Framework
Other
155 stars 133 forks source link

Allow use of Credentials as ActionGroup Argument #880

Open xsanz opened 2 years ago

xsanz commented 2 years ago

Preconditions

  1. MFTF version 3.5.0

Steps to reproduce

Trying an ActionGroup like this <actionGroup ref="AlternateAdminLoginActionGroup" stepKey="loginAsAdmin"> <argument name="username" value="{{_ENV.MAGENTO_ADMIN_USERNAME}}"/> <argument name="password" value="{{_CREDS.admin_password}}"/> </actionGroup>

Expected result

  1. Test is generated and Run without problems

Actual result

  1. Test is not Generated Error Log reports [2022-01-05 08:19:11] Magento\FunctionalTestingFramework\Util\TestGenerator.ERROR: Line 277: You cannot reference secret data outside of the fillField, magentoCLI and createData actions in Test
m2-assistant[bot] commented 2 years ago

Hi @xsanz. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


xsanz commented 2 years ago

Hello,

There's any feedback about this?

Thank you