You can add an optional "Use strict URL prefix" parameter to your Link Crawler plan to restrict the URLs that it visits. With this parameter set to "true", mabl will only crawl pages with a URL prefix that matches the base URL for your application.
To illustrate, if you have an application with a base URL of https://app.example.com, the link crawler will visit any linked pages that include example.com as the base domain, including www.example.com and docs.example.com. With this parameter enabled, mabl would only crawl pages that begin with https://app.example.com. We could further restrict the pages that mabl visits by including sub-pages in the URL for the plan. Thus, if the plan was set to test https://app.example.com/app1/ and this parameter was set to true, mabl would only visit linked pages that begin with https://app.example.com/app1/.
Note: More information on the default behavior of the crawler is available here
More information on the default behavior of the link crawler is available here.
- Open the Plan Details page for "Check all pages for broken links and errors."
- Click the "Edit" button.
- Scroll down to the "Tests" section.
- Click on the "Configure data-driven variables" icon for the "Visit all linked pages within the app" test.
- Click "Add Parameter" and (if applicable) choose "mabl parameter" as the Parameter Type
- Choose "use strict URL prefix" as the Parameter Name
- Choose "true" as the Parameter Value
- Click "Done" and save the plan
Updated 5 months ago