magento/magento2-functional-testing-framework

Allow use of Credentials as ActionGroup Argument

xsanz opened this issue · 2 comments

xsanz commented

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

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

Hello,

There's any feedback about this?

Thank you