
- Forum
- Testing
- Software Testing
- How to modify an xml file using QTP?
How to modify an xml file using QTP?
This is a discussion on How to modify an xml file using QTP? within the Software Testing forums, part of the Testing category; Basanth, the above code doesn't print anything. but if i select a file which has only the below content, QTP ...
-
Basanth, the above code doesn't print anything.
but if i select a file which has only the below content, QTP displays a log file during runtime & displays the below code in the log file.
<Values>
<ShippingAmount>
</ShippingAmount>
</Values>
-
Set xmlobj = XMLUtil.CreateXMLFromFile("D:\InvoiceLoad\Regression Testing\LeaseInvGap8OPDE_COA.xml")
rootelements = xmlobj.GetRootElement
msgbox rootelements
Try this. Is your D: drive on the local machine or it is a remote share ??
-
It again displays the same warning - "The underlying connection was closed: Unable to connect to the remote server."
D: drive is in my local machine.
-
Could you close QTP & then open it back up.Try running it then.
If it doesnt work, Just copy the xml file and place it under C: drive. Then provide the path C:\xml file and then execute the code.
Lets see...
-
Adding another info...
Are you behind a firewall ?? If so, can you disable it and then check again,.
-
I restarted QTP and also executed the script by placing the file in C: drive but displays the below msg as before.
I'm not sure if therz a firewall in my machine and as i'm working from my off machine, i dont have access to view or to change the settings.
-
Intresting !!
I am unsure as to why you are getting that error...but this definitely looks to me like there is some issue with the response server. I may be wrong here, so the last i can help you is with the article below.
http://support.microsoft.com/default.aspx?scid=kb;EN-US;915599
You receive one or more error messages when you try to make an HTTP request in an application that is built on the .NET Framework 1.1 Service Pack 1
Sorry pal, i tried my best...i am out of solutions.
-
I'll try te options or looks for some other solution but Thanks Basanth. Really appreciate the support u gave.
Thanks a ton !
-
There are methods available for XMLUtil object to update xml file.
-
Can you pls give some example?
-
Sponsored Ads

Reply With Quote






