mercredi 5 avril 2017

How to load xml file in uft from qc?

I'm trying to load(xmldoc.load) an xml config file from alm/qc test resources and it's returning false, therefore no nodes can be selected.

Kindly assist. Thanx

Here is a sample of the the code below :

Set xmlDoc = CreateObject("Microsoft.XMLDOM")

xmlDoc.Async = False xmlDoc.Load("[ALM\Resources] Resources\Test_Resources\config")

Environment.LoadFromFile "[ALM\Resources] Resources\Test_Resources\Environment"

Set node_Environment = xmlDoc.SelectSingleNode("/configuration/options/RunEnv/text()")

strEnvironment = node_Environment.NodeValue

Aucun commentaire:

Enregistrer un commentaire