Monday, June 21, 2010

Parse QTP Report XML

'Parse QTP report xml, when required to convert into other file types
'Source : SQA Forums Post
'http://www.sqaforums.com/showflat.php?Cat=&Board=UBB20&Number=626183

*************************************************************************

Function parseQtpXmlResultFileExample()
Const XMLDataFile = "C:\Documents and Settings\Desktop\TestQTP\Res1\Report\Results.xml"

Set xmlDoc = CreateObject("Microsoft.XMLDOM")
xmlDoc.Async = False
xmlDoc.Load(XMLDataFile)

'Get test name:

Set TcNode = xmlDoc.SelectSingleNode("/Report/Doc/DName/text()")
MsgBox "Test case name:" &TcNode.NodeValue

Set node = xmlDoc.SelectSingleNode("/Report/Doc/NodeArgs/Disp/text()")

'Get product name:
Set node = xmlDoc.SelectSingleNode("/Report/Doc")
MsgBox node.GetAttribute("productName")

'Get Summary - sTime
Set node = xmlDoc.SelectSingleNode("/Report/Doc/Summary")
MsgBox node.GetAttribute("sTime")


''Get Summary - passed
Set node = xmlDoc.SelectSingleNode("/Report/Doc/Summary")
strPass = node.GetAttribute("passed")

MsgBox "Pass verification: " & strPass

'Get Summary - passed
Set node = xmlDoc.SelectSingleNode("/Report/Doc/Summary")
strPass = node.GetAttribute("passed")

MsgBox "Pass verification: " & strPass

End Function

*************************************************************************

call parseQtpXmlResultFileExample()

72 comments:

Anonymous said...

this doesn't work out in qtp can u suggest a code that works fine thanks

Jonty... said...

Hope your issue has been resolved by now. The easiest way is to creat a vbs and call that as a function.

But why doesnt it work on QTP, what is the issue ?

Anonymous said...

generic xanax buy xanax bulk - 20 mg xanax side effects

Anonymous said...

buy xanax online 2mg klonopin 2mg xanax - safe to order xanax online

Anonymous said...

xanax online long pass drug test xanax - xanax overdose and death

Anonymous said...

generic xanax xanax 2 mg recreational use - pink xanax pills mg

Anonymous said...

buy tramadol online tramadol 50mg side effects for dogs - tramadol hcl 50mg tab for dogs

Anonymous said...

generic xanax does xanax show up military drug test - get high xanax

Anonymous said...

cheap tramadol online buy tramadol online cod no prescription - tramadol for dogs drowsy

Anonymous said...

generic xanax michael jackson xanax dosage - half life 1mg xanax

Anonymous said...

buy tramadol with mastercard order tramadol by phone - tramadol 100mg buy online

Anonymous said...

buy tramadol online tramadol hcl and alcohol - tramadol effects

Anonymous said...

buy tramadol online best place buy tramadol online - can you order tramadol online legally

Anonymous said...

xanax online does xanax show up on an oral drug test - xanax 11

Anonymous said...

generic xanax xanax dosage insomnia - pass drug test using xanax

Anonymous said...

buy tramadol online tramadol hcl 50 mg ingredients - can buy tramadol online usa

Anonymous said...

xanax online alprazolam 0.5mg tab - xanax online overnight

Anonymous said...

alprazolam no prescription cheap legal xanax - xanax and breastfeeding

Anonymous said...

generic xanax xanax bars wikipedia - xanax side effects slurred speech

Anonymous said...

buy carisoprodol carisoprodol 350 mg picture - carisoprodol no prescription needed

Anonymous said...

xanax online xanax withdrawal symptoms headache - xanax 1 mg upjohn

Anonymous said...

generic xanax xanax help anxiety - what is xanax 2mg for

Anonymous said...

buy carisoprodol carisoprodol 350 mg cost - carisoprodol gabapentin interaction

Anonymous said...

xanax online 2mg xanax get high - xanax withdrawal schedule

Anonymous said...

can you buy tramadol online legally buy tramadol in usa no prescription - tramadol 50 mg kapseln

Anonymous said...

buy tramadol online order tramadol online 100mg - buy tramadol online from usa

Anonymous said...

cialis online buy cialis with paypal - cialis usage

Anonymous said...

xanax online xanax drug assistance program - xanax and alcohol memory loss

Anonymous said...

buy tramadol online tramadol risks - tramadol addiction + 2011

Anonymous said...

cialis online buy cialis through paypal - long does daily cialis take work

Anonymous said...

cialis online cialis 60 anni - generic cialis jelly

Anonymous said...

buy cialis usa cialis reviews men - buy cialis line

Anonymous said...

buy cialis online reviews viagra cialis levitra - cialis online drugs

Anonymous said...

http://buytramadolonlinecool.com/#30807 tramadol hcl 50 mg compared to hydrocodone - tramadol hcl obat apa

Anonymous said...

generic tramadol safe order tramadol online - tramadol hydrochloride 100 mg side effects

Anonymous said...

learn how to buy tramdadol tramadol extended release high - tramadol veterinary

Anonymous said...

http://landvoicelearning.com/#23561 tramadol addiction after 1 week - how to buy tramadol online overnight

Anonymous said...

learn how to buy tramdadol overdose of tramadol hydrochloride - tramadol for dogs reviews

Anonymous said...

learn how to buy tramdadol tramadol hcl 50mg tv 58 - ultram tramadol overdose

Anonymous said...

buy tramadol tramadol cod online pharmacy - tramadol 50mg tablets

Anonymous said...

buy tramadol tramadol overdose narcan - buy tramadol online cheap

Anonymous said...

http://blog.dawn.com/dblog/buy/#about-us tramadol zofran interaction - buy tramadol online 100mg

Anonymous said...

learn how to buy tramdadol best online pharmacy tramadol - buy discount tramadol

Anonymous said...

buy tramadol without prescriptions tramadol 319 dosage - dealing with tramadol addiction

Anonymous said...

http://buytramadolonlinecool.com/#96430 tramadol withdrawal loperamide - buy tramadol online from usa

Anonymous said...

buy ativan online ativan for alcohol detox - buy lorazepam without prescriptions

Anonymous said...

http://reidmoody.com/#92465 lorazepam to buy uk - ativan 063

Anonymous said...

very best best free website to start an excellent blogg?


Feel free to visit my site :: paginasamarillas-atl.com

Anonymous said...

buy tramadol rx tramadol x 225 - order tramadol online to florida

Anonymous said...

buy xanax online xanax generic effective - sonata and xanax drug interactions

Anonymous said...

com is the most reliable, and professional Online Pharmacy
for Generic Drugs, with no prescription medication store.
Several methods recommended increasing penis size and surprise, surprise, none of them work.
Penis pumps are popular with men who have this condition.



my homepage - buy cheap viagra india

Anonymous said...

http://staam.org/#21236 que es tramadol hcl 50 mg - tramadol drug buyers

Anonymous said...

buy tramadol cheap online tramadol online tennessee - ordertramadolonline.org

Anonymous said...

xanax for sale without prescription long does xanax effects last - xanax 031 side effects

Anonymous said...

xanax online pharmacy xanax 1 mg side effects - xanax lethal dose

Anonymous said...

buy xanax online no rx where to buy alprazolam powder - xanax you buy online real

Anonymous said...

buy xanax online can you order xanax online - xanax pill blue

Anonymous said...

Hi are using Wordpress for your site platform?

I'm new to the blog world but I'm trying to get started and create my own.
Do you need any coding knowledge to make your own blog? Any
help would be really appreciated!

Visit my blog :: cheap dental implants

Anonymous said...

Hi, i believe that i noticed you visited
my weblog so i got here to go back the favor?

.I am trying to find issues to improve my web site!I guess its
good enough to use a few of your ideas!!

Feel free to visit my weblog ... Http://Ubb.Austincomputertn.Com/

Anonymous said...

Thank you a bunch for sharing this with all of us you really realize what you're talking about! Bookmarked. Please also consult with my web site =). We could have a hyperlink alternate agreement among us

Here is my web blog: dental implant costs

Anonymous said...

Today, I went to the beachfront with my kids. I found a sea shell and gave it to my
4 year old daughter and said "You can hear the ocean if you put this to your ear." She placed the shell to her
ear and screamed. There was a hermit crab inside
and it pinched her ear. She never wants to go back!
LoL I know this is totally off topic but I had to tell someone!



My web site; costs of dental implants

Anonymous said...

Pretty! This has been an extremely wonderful article.
Thank you for providing these details.

Stop by my homepage :: the tao of badass

Anonymous said...

Asking questions are genuinely good thing if you are not understanding something fully, except this paragraph offers pleasant understanding yet.


Feel free to surf to my weblog: tao of badass buy

Anonymous said...

Υour currеnt write-up hаs established neceѕѕary
to us. It’s quіte educаtional and yοu're simply certainly very experienced of this type. You possess opened my own eyes to be able to numerous opinion of this specific subject together with intriquing, notable and strong written content.

Also visit my site; buy viagra

Anonymous said...

buy tramadol for dogs buy tramadol medication - generic tramadol

Anonymous said...

I couldn't resist commenting. Exceptionally well written!

Visit my web page ... website

Anonymous said...

Your own repоrt fеatures establіshеԁ
necеѕsаrу to myself. It’s reallу helpful anԁ
you're simply clearly quite educated in this field. You have got opened up our sight to be able to numerous thoughts about this particular subject using interesting and sound articles.

Feel free to surf to my web page - Buy Adipex

Anonymous said...

can you buy ambien order ambien online from canada - buy ambien sleeping pills

Anonymous said...

http://www.pregnancyaid.in
A blocked fallopian tube could be the of pelvic inflammatory disease or previous endometriosis. When these ladies are about to give birth, these leaves are also important because they help in the delivery process. Do not skip this process and immediately work your way south!

Anonymous said...

[url=http://www.vip1michaelkorsoutlet.org]Michael Kors Outlet[/url] Next time, reinvest only the amount you began with or less

[url=http://www.mislouboutinsaleuk.co.uk]Christian Louboutin Outlet[/url]Your lifestyle could well be improved with comfortable shoes

[url=http://www.getfreerunaustralia.org]Nike Free Run[/url]For example, how to dress up could be beautiful and charming? How to wear to be appropriate and tasted? They talk about kinds of fashion styles with friends

[url=http://www.upnikepascherfr.info]Nike Dunk[/url] But we're not getting leadership; we're just getting condolences

Anonymous said...

http://1998cdp.org/forum.php?mod=viewthread&tid=263595&extra=
http://www.newhampshiregoldrefinery.com/index.php/forum/welcome-mat/28457-insights-into-easy-systems-of-beautiful-shoes#28387
http://volgacapital.ru/forum/showthread.php?p=447384#post447384
http://simsportsonline.com/forum/viewtopic.php?f=4&t=127868
http://aaaaaa.funbbs.me/viewthread.php?tid=18886&extra=
http://www.batanglvyou.com/bbs/viewthread.php?tid=109904&extra=
http://www.navy.mi.th/navy26/webboard2/viewthread.php?tid=780175&extra=
http://www.ylxls.com/bbs/forum.php?mod=viewthread&tid=132158&extra=
http://www.bianchi.cn/bbs/forum.php?mod=viewthread&tid=106165&extra=
http://chosinhvienonline.vn/threads/selecting-convenient-methods-of-beautiful-shoes.9265/#post-11812

Anonymous said...

http://www.war3evo.info/forum/viewtopic.php?f=3&t=45804
http://jiankangpinpu.org/forum.php?mod=viewthread&tid=38321&extra=
http://www.460o.com/thread-281387-1-1.html
http://www.52spank.com/forum.php?mod=viewthread&tid=210776&extra=
http://ivanpetrovic.eu/forum/index.php?topic=454992.msg461319#msg461319
http://bbs.gzsjxn.com/forum.php?mod=viewthread&tid=256672&extra=
http://www.ditan321.com/thread-80610-1-1.html
http://diendantuyensinh.edu.vn/viewtopic.php?f=9&t=92419
http://17.anlid.com/forum.php?mod=viewthread&tid=50335&extra=
http://thomas-howell.net/simplemachinesforum/index.php?topic=280970.msg285960#msg285960