Verify Objects

This is a pre-built Action located under the @Generic Element. The functionality of this Action in Avo Assure is to verify whether the XML blocks provided in input field are equivalent. The result is stored in the given dynamic variable for further use during test execution.

Note: The Verify Objects action supports only XML blocks. The input value must contain two XML blocks that are compared during execution.

Syntax

Input Value: <Dynamic Variable>;<Dynamic Variable>

Argument
Description

<Dynamic variable>

(Required)

Provide the first XML block which you want to compare with second XML block.

<Dynamic Variable>

(Required)

Provide the second XML block which you want to compare with first XML block.

Output Value: N/A

Argument
Description

N/A

Not Applicable

Example: Verifying Whether Two XML Blocks Match

In this example, we explain how to verify whether two XML structures are identical by comparing them during test execution.

  • Action: Verify Objects

  • Input Value: <Employee><ID>101</ID><Name>Helen Powell>;<Employee><ID>101</ID><Name>Helen Powell>

    • The argument (<Employee><ID>101</ID><Name>Helen Powell</Name></Employee> ; <Employee><ID>101</ID><Name>Helen Powell</Name></Employee>) specifies the two XML blocks separated by a semicolon. This action compares the two XML blocks to verify whether their structure and content match exactly.

  • Output Value: N/A

    • This action does not require any input value in the Output Value column.

  • Logical Explanation: The Verify Objects action reads the two XML blocks from the Input Value column (<Employee><ID>101</ID><Name>Helen Powell>;<Employee><ID>101</ID><Name>Helen Powell>). It treats them as two XML blocks and compares their structure and values to check if both matches exactly.

Last updated

Was this helpful?