Parametrizing baseline XML name stored in Stores > XML using XML checkpoint
I am using XML checkpoint and my baseline XML is stored in Stores-XML. ;I have more than 1 baseline XML. I am using the command XML.MyBaselineXML1.Check(Actual_XML_Name)&This works good if I hard-code 'XML.MyBaselineXML1' name in the function. However, I want to call my function several times for different baseline reports. I tried creating a parameter for the baseline report name, something like this:
XML.MyBaselineXML1.Check(Actual_XML_Name). I want to parameterize MyBaselineXML1 items in stores-XML.
I read your solution for File checkpoint by using following but this is NOT an option for XML.
{
Set Stored File = Files.Items("Order List_old")If Not Stored File.Check("C:\Work\Orders List.text")
}
Thank you so much Martin for your reply. I am using VB scripting. The curly braces was to give example of file checkpoint used in smart bear web so i just paste it to give ref. Please do not consider this question relating to Java or Java scripting.
Could you please elaborate on "Eval" option which can used in this case and help with an example.
Here's the documentation on the VBScript Eval function (https://www.w3schools.com/asp/func_eval.asp). This is not a unique TestComplete thing.