Resource Variables are used to validate network calls that a page makes and to verify that it loads as expected. As an example, a user may want to use resource variables to do technical verifications. Resource Variables offers a lot of flexibility.
Sample simple Use Case: Verify that all network calls are loading as expected.
Sample complex use case: Validating information within the DOM/source code to ensure that data matches the visual elements that are displaying on a page. Further, that the segmentation is working as expected and the correct subset of users are having the correct experience as expected based on the information that is loading.
Resource Variables are applicable within Architect.
To begin, it is important to set up what url's are acceptable to show in the resource variable drop down menu in architect.
To Set Up (Add) the Resource Variable URL's in Architect
- Go to the Team tab in Functionize *Note: the Team tab is only available to an Admin account.
- Click on Resource Tracker then define what URLs should show in the Resource Variable drop down in Architect.
- This is the Resource Tracker Whitelist.
- Please specify the URL of the resources that need to be tracked in Architect. Note: each resource will be tracked for requestHeaders, responseHeaders, QueryString and associated parameters.
- If Regex is selected, use the syntax as example: cbs.com/* or *cbs.com/* -- as wildcards.
- When ready, click Submit.
- These will now be available when applying a Resource Variable during test creation.
To Apply a Resource Variable
- Turn the ADV (advanced) toggle to On in Architect.
- Click the + icon for Type instructions.
- Click Page Variables flag.
- Select Resource Variables radio button.
- Select the appropriate url for verification from the URL drop down menu.*
- Select the Variable Name. In this example, the user is selecting statusCode.
- Select the Operator.
- Select the Value. *The current value will auto populate.
- Click Continue.