2.17 - Validation Suite and Store Content
Validation Suite and Store Content — Appvance IQ documentation.
- Validation Suite and Store Content Overview
- Validation and Store Content in Scenario Editor
- Validate and Store HAR Content in AIQ
- Store Target and Post-Processing
- Extract and Validate PDF Content
Validation Suite and Store Content Overview
Recommended guidance
Use Validation Suite and Store Content features when AIQ tests need to verify content, files, responses, or extracted values as part of repeatable validation. Keep validation assets organized so the expected evidence is clear and maintainable.
Useful validation targets
- Downloaded files, PDFs, images, text blocks, metadata, and extracted values.
- API responses or service outputs that must match expected content.
- Scenario Editor evidence used to confirm application behavior.
- Stored reference content used for regression checks.
Maintenance checklist
- Define what content is expected and what differences are acceptable.
- Control dynamic values such as dates, IDs, timestamps, and generated content.
- Store reference artifacts in a reviewed repository or approved project location.
- Review failures to separate real application changes from outdated expected content.
Last updated: October 6, 2026
Validation and Store Content in Scenario Editor
This feature is to validate the request and response of the Appvance Designer script and validate the responses of the Appvance Designer script by adding assertions.
The steps to be followed to add assertions in Appvance Designer is given below:
-
Create an Appvance Designer script using Appvance Designer in IQ.
-
Create a Functional test scenario and save it.
-
Run the Functional test scenario.
-
Navigate to Controller and go to the Validation suite tab and Add assertions.
-
Refresh the scenario and check if the assertion added is reflected appropriately.
-
Re-run the same scenario with added assertion and validate if assertions are processed.
Create an Appvance Designer script using Appvance Designer in IQ
We will use the "Apple website" to create a sample Appvance Designer Script.
The Appvance Designer script with the recorded steps is shown below in the screenshot
Create a Functional test scenario and save it
Create a functional test scenario using the Appvance Designer script created in the above step and save the scenario. The screenshot is given below.
Run the Functional test scenario
Click the "Play Scenario" button and the scenario should run successfully (with at least a few steps).
Navigate to Controller and go to Assert suite tab and Add assertions
Once the test is completed successfully. Click the Validation suite tab and from the drop-down select the assertion of our choice
We will select the Assertion type as Assert Matches and add the assertion accordingly.
Where
-
The select type will allow the user to select from the Test case, Step and Request.
-
Test case Name is the name of the Test case that is provided in the Scenario builder.
-
Step Name is the name of the step under which we will add the assertions
-
Request name is the name of the request for which we are adding an assertion
-
The matching string is the string we will be looking for
-
Target is the area in which assertions will be checked, * can be used for everything, Any regular expression can be used.
There are 3 types are targets
-
JSON: Target is the path
-
XML: Target is the Xpath
-
Text: Target is Regex
Refresh the scenario and check if the assertion added is reflected appropriately
After we add the assertions in the test controller we can view the same in Scenario Builder (SB) by Clicking on Save assertion. Once the assertion is saved User needs to refresh the Scenario Builder page to see the changes. Users should navigate to the Assert suite tab of the Scenario Builder page. The screenshot of the below is shown below:
We will be saving the scenario and running it again and the test will fail since the request is set to false
The output from the controller is given below where it is failing.
Re-run the same scenario with added assertion and validate if assertions are processed
Now the user changes the assertions and makes sure the valid assertion is passed and re-runs the same scenario and the test should pass successfully since the valid assertion is passed. The screenshot of the controller with valid assertion processed as shown below
Different Formats and their targets:
We have three different formats
-
XML
-
JSON
-
TEXT
For Text, we need to use regular expressions as the target
For XML, we need to use xpath as a target
For JSON, we can use JSON as the target expression
The below example shows how to deal with JSON responses and those assertions can be added to APC
We can use the indexes as shown below:
Make sure the Format is JSON for this particular test.
Similarly, we can do other assertions like:
Asset Exist
Assert Size
Assert Duration
Assert Checksum
Assert Response Codes
Last updated: June 26, 2023
If you have any feedback on this topic, please contact us at documentation@appvance.ai
Validate and Store HAR Content in AIQ
This feature is to validate the request and response of the HAR and validate the responses by adding assertions.
-
Initially, we will be taking 3 Services for recording the HAR script
-
http://localhost:8080/AppvanceServices/rest/unique/getUniqueEntries
The above service generates a unique ID every time the service is called.
-
-
http://localhost:8080/AppvanceServices/rest/unique/verifyUniqueData?data=1443081822217- The above will return true/false based on the values
-
http://localhost:8080/AppvanceServices/rest/unique/getUniqueEntries – This will return a JSON formatted response. Below is the screen-shot for reference
-
In our case, we will be creating 2 HAR scripts by using the above 2 URLs in the Google Chrome browser and recording the transactions, and saving the script as HAR
-
For the first URL we have saved the script as HAR_assert_1.har and for the second URL we have saved the script as HAR_assert_2.har
-
We will be creating a scenario using both the scripts in Appvance Scenario Builder. The screen-shot of the test case is given below:
-
We will save the scenario and play it as a functional test and the output from the controller will be as below
-
As mentioned the first script will generate a random unique number and the second URL just returns a true/false with that unique number.
-
Once the test is completed successfully, we can proceed to add assertions to the above test
-
Navigate to the Assert suite tab and the user can select any of the assertions that already exists in the drop-down
-
In the below, we will be using Assert Matches and adding the assertion accordingly as shown in the below screen-shot
Where
-
The select type will allow the user to select from Testcase, Step, and Request.
Test case Name is the name of the Test case that is provided in the Scenario builder.
Step Name is the name of the step under which we will add the assertions
Request name is the name of the request for which we are adding an assertion
The matching string is the string we will be looking for
Target is the area in which assertions will be checked, * can be used for everything, Any regular expression can be used.
There are 3 types are targets
-
JSON: Target is the path
-
XML: Target is the Xpath
-
Text: Target is Regex
After we add the assertions in the test controller we can view the same in Scenario Builder (SB) by Clicking on Save assertion. Once the assertion is saved User needs to refresh the Scenario Builder page to see the changes. Users should navigate to the Assert suite tab of the Scenario Builder page. The screenshot of the below is shown below:
We will be saving the scenario and running it again and the test will fail since the 2nd request will have a false value and the expected value in our assertion is “true”.
The output from the controller is given below where it is failing.
Use Locker to Store Content and Reuse in Another Test Case
The first URL is generating a unique response and it is not being used in the second URL. We will be using a mechanism called "Store Content" which will store the response from the first URL and that value can be passed to another test case using Locker DPL functionality and that value can be asserted.
The Steps to add store content and use it in the second URL are shown below.
-
Go to the Assert suite tab of Controller and select store content
-
The process is similar to the way we add assertions. Go to the Assert suite tab and select Store content from the drop-down, select the first URL as the step name and the Request name
-
Target can be everything again
-
Variable Name can be a user-defined unique name; in our case, we will be naming it UniqueID
-
Once added, Go back to Scenario Builder and refresh the page, and navigate to Store suite to see the new entry been added. Save the Scenario
-
Few modifications need to be done for the script to use the variable name that we created. Open the script in your favorite editor and change the value to have UniqueID as shown below
-
Once done, the request name in the Scenario builder – Assert Suite to be updated with the same name as seen below
http://localhost:8080/AppvanceServices/rest/unique/verifyUniqueData?data=14696219070790.5884963038213008
-
Note that "14696219070790.5884963038213008" will be generated uniquely for each run. So we are saving the unique number into a variable called "UniqueID" which we have declared in Store content. The URL will be modified as given below:
http://localhost:8080/AppvanceServices/rest/unique/verifyUniqueData?data=UniqueID
-
We will be using a mechanism called "The Locker" which will be used for transferring the data stored from the first script to be used in the second script
-
We have to add "The Locker" in the second script which will use the data from the Locker
-
The Test case module after we add the Locker is given below:
-
Once the changes are made we can save the script as well as the scenario and re-run it
As you can see below, we have a successful execution
We are storing the value in the variable as seen below and passing that to the 2nd test-case
Different Formats and their targets:
We have three different formats
-
XML
-
JSON
-
TEXT
For Text, we need to use regular expressions as the target
For XML, we need to use xpath as a target.
For JSON, we can use JSON as the target expression.
The below example shows how to deal with JSON responses and those assertions can be added in APC.
We can use the indexes as shown below:
Make sure the Format is JSON for this particular test.
Similarly, we can do other assertions like
-
Assert Exist
-
Assert Size
-
Assert Duration
-
Assert Matches
-
Assert Checksum
-
Assert Response Codes
Last updated: July 28, 2023
If you have any feedback on this topic, please contact us at documentation@appvance.ai
Store Target and Post-Processing
The Store tab in the Scenario Editor allows you to define extractors that listen for a specific Step and Request and extract data from its response.
When creating a Store or Assert entry in the Scenario Editor, you must configure the Target according to the type and format of the response.
You can also apply post-processing to the extracted value. Post-processing allows you to transform, encode, decode, or otherwise manipulate the value before it is stored or used by the scenario.
This document provides examples of the values that can be used for the Target and Post-processing fields.
Post-Processing
Post-processing functions operate on the value extracted by the Target.
The value() function represents the value extracted by the configured Target.
Examples:
substring(value(), 0, 2)— returns a substring of the extracted value.URLEncode(value())— URL-encodes the extracted value.URLDecode(value())— URL-decodes the extracted value.append(value(), "-abc123")— appends the specified string to the extracted value.length(value())— returns the length of the extracted value.URLParam(value(), 'id')— extracts the specified URL parameter from the value.
Target
The Target field supports different syntaxes depending on the type of response being processed.
The Target hint text in the Scenario Editor can change dynamically according to the selected target type.
The // characters indicate a comment and are not part of the Target syntax, except for HTML Targets, where // is part of the XPath expression.
Default Targets
The following Targets can be used with any supported response:
duration— returns the request duration.responseCode— returns the HTTP response status code.size— returns the response size in bytes.md5— returns the MD5 checksum of the response.
HTTP Targets
For example, given the following response:
data=45, data=68
You can use:
raw/data[0]— returnsdata=45.raw/data[1]— returnsdata=68.#data— returns45.Header:Accept— returns the value of theAcceptheader.CookieValue:CSRF-TOKEN— returns the value of theCSRF-TOKENcookie.
HTML Targets
Use standard XPath expressions to extract values from HTML responses.
For HTML Targets, the // at the beginning of the Target is part of the XPath and is required.
Example:
//input[@name='__RequestVerificationToken']/@value
This Target returns the value of the value attribute of the matching input element.
JSON Targets
Use JSON paths to extract values from JSON responses.
For example, given a JSON response containing an employees array:
employees[0].address.city— returns the city of the first employee.[2].carousel.images[1].path— returns thepathvalue of the second image in the carousel of the third element.
PDF Targets
The following Targets can be used to extract information from PDF responses:
document— returns all text in the document, excluding form text.page[2]— returns all text from page 2, excluding form text.documentforms— returns a JSON representation of the forms contained in the document.regex:Once upon a .* ever after.— returns the text matching the specified regular expression, if found.
String Targets
String Targets can be used to extract a portion of a response based on delimiters or positions.
For example, given the following response:
The tested process returned: ID=ABCDEF.
Examples:
11,20— returnsprocessed.ID=,false— returnsABCDEF.ID=,true— returnsID=ABCDEF.ID=,38,false— returns the portion of the response according to the specified delimiter and position.ID=38,true— returns the portion of the response according to the specified position and inclusion option.
Note: The exact behavior of positional String Targets depends on the Target syntax supported by the current AIQ version.
Text Targets
For text responses, specify the Target as a regular expression.
Examples:
(?<=\\"__RequestVerificationToken\\" type=\\"hidden\\" value=\\")[a-zA-Z0-9\\-_]+id=.*
The Target returns the text matching the specified regular expression.
CSV Targets
CSV Targets allow you to extract values from responses formatted as CSV.
For example, given the following CSV data:
id | name | state |
|---|---|---|
1 | john | California |
2 | barry | Nevada |
3 | stef | Texas |
4 | karla | New York |
Examples:
2,2— returnsbarry.last(),"name"— returnskarla.,"name"— returns an array containingname,john,barry,stef, andkarla.3,last()— returnsTexas.id=3,2— returnsstef.
Note: Make sure the indexing behavior used by CSV Targets matches the indexing convention of your AIQ version.
Last updated: August 12 2026
If you have any feedback about this topic, please contact documentation@appvance.ai.
Extract and Validate PDF Content
From Appvance IQ it is possible to read a pdf document and is possible to assert for a string in the whole document or you can also mention asserting for content on a specific page of the document. All from Scenario Builder Assertions.
The below example shows an example of how this can be achieved.
A simple java file was created which browses the pdf document and a jar file was created out of the java file.
Go to Scenario Builder and create a functional scenario with the script type being 'Java' and provide the Class and the method name as desired and browse the jar file.
Save the scenario and Play the scenario.
Once the scenario is played back successfully, go to the Validation Suite tab and select the required assertions from the drop-down available.
You can choose the test-case, from the drop-down and also choose the step / Request
And provide the expected Value (Expected text that we are looking for from the PDF), Format can be chosen as PDF and the target can be a
-
Page number
-
A regular expression
-
or the full document itself.
Once those entries and made, from the Scenario Builder, refresh the scenario to have those assertions added. Check the below screenshots for reference.
Save the scenario again and playback the scenario to check the results of the pdf validations.
Last updated: June 26, 2023
If you have any feedback on this topic, please contact us at documentation@appvance.ai