Feature Requests & Ideas

For bug reports and questions, please use the in-app chat or support@mabl.com.

Use variables in urls for visual tests

Note: Issue has been resolved (already exists) and suggestion can be removed.

As a tester, I'd like to be able to use existing variables in the urls for visual tests.

Right now, if I set up a test plan to run against our Staging and Production environments and include a visual test, because the urls for the visual test must be hardcoded, the test will only run against the environment it was coded against. This means I have to create separate Plans for our Staging and Production environments for any visual tests, with tests that are otherwise identical.

Also, if the url for one of our environments changes, our team would need to manually update every visual test that targets that environment.

  • Dave Kiesel-Nield
  • Aug 6 2020
  • For Consideration
  • Attach files
  • Dave Kiesel-Nield commented
    7 Aug 05:17pm

    This is working for me. I'm not sure why it wasn't when I submitted the idea; probably user error. This suggestion can be closed.

  • Eugene Krylov commented
    7 Aug 03:38pm

    That variable will get set to value of the URL for your chosen deployment/environment.

  • Eugene Krylov commented
    7 Aug 03:36pm

    Dave, you should be able to use {{@web.defaults.url}} in visual tests. E.g.
    {{@web.defaults.url}}
    {{@web.defaults.url}}/help
    {{@web.defaults.url}}/about

Copyright © 2020 mabl Inc. All rights reserved.