Forum Discussion
Hi,
I believe that Files.Items() is what you are looking for. (http://support.smartbear.com/testcomplete/docs/reference/project-objects/items/stores/files/items.html and http://support.smartbear.com/testcomplete/docs/reference/project-objects/items/stores/files/methods.html)
- monil_thakker6 years agoNew Contributor
Hello Alex,
I have a similar problem where in 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")
}
- tristaanogre6 years agoEsteemed Contributor
Your question will be answered in the thread that you created specifically for your quesiton. (https://community.smartbear.com/t5/TestComplete-General-Discussions/Parametrizing-baseline-XML-name-stored-in-Stores-gt-XML-using/m-p/165936#M30703)
- AlexKaras6 years agoChampion Level 3
Hi,
I believe that example from the 'XMLCheckpoint Object' help topic should help.
Related Content
- 10 years agosmarshall
- 4 years agoryanterronez
- 3 years agorobin1
Recent Discussions
- 3 days agovladd1