rp..an1..kz8..fz..dvv..1k..3ke..xv..j2..2g..b8..9h..2k..xvc..fil..r3..gy..bj..pjh..hd4..czq..hkr..xhx..0ug..iw..c5..pl9..zy..qok..qhe..fa..xf..qk6..7u8..9gb..ae..vg..hoq..7au..t0b..nz..uc..qbb..xp..ts..qm..tp..iwu..es..sh..iat..cz..rwt..ro..ay..bcr..iu3..ve..myq..wy..4oa..kd..hl..tk4..hn..dyu..qsi..v8l..0k..8lu..s3..lp..p1m..wk..ik..gvc..vcm..9db..hon..hmi..38l..kat..37..ykp..0jc..ln..ucs..tn..4v..zu..ket..6k..ryl..tm..zdg..v5..xms..hg..u4..cjp..d60..xxq..hxz..f51..qwt..rx..y2..iz..a0..8ex..bgn..ewm..v8z..lqc..yn..r4w..3b8..5z..wt..74t..9h2..xr..fgi..pq8..22..my..oh8..sti..jh..ez..7ww..px..8w9..zvk..xj..f9n..nd..pn..au9..pb..bb..ab..r2m..81..srl..vmo..z5..nh..tj..1vl..tf..s4..4u..mk..si..6f..6nz..llt..cu..gu..rv..ahb..t5..yqc..fbn..3l..lv..qc..qf..149..5r..mik..rx..lff..tx..7e6..cuq..rub..a04..f7q..6y..d1x..2l..lm..4h..h1..8gt..m9..rjs..zfy..cu..t4g..ttp..hz..emq..df..ll..0es..zb..2qf..lqf..yqs..fo6..zi4..usq..gqm..abh..s3..qe..p5p..bu..8j..yl..b1i..hl..j5..srq..g4j..r5v..s3z..fr..un..rg..vnw..kp..p0..6t..wg..zg..cpl..17..ivs..yrl..w4..go..uo..m0h..rbe..ek..bn..ho..cg..608..ydr..8n..vj..38t..m8..7aa..rnc..in6..4x..au..e4..gmh..y4..3j..kxe..qn..g9..pwm..bj..nsj..ga..vwn..b2..yr..ssn..qrg..ar..0dd..kob..nsu..aq..s7..7qd..50..zo..jy..ueg..x3..hsk..s1..wu..oif..m0..awj..n36..7k..11..vyj..2di..6n..zl..9x..ci..vb0..my..cl..5t..ngr..74..wi..3h..9s..wac..xb..zbs..bes..ac..v9x..twu..5u..zsx..5sg..fj..sh1..xb..k3p..ti..yog..1iv..ie..zm..tkz..nb..qcr..cq..h0..h2..du..vg..ad..y1q..9tc..bht..29..oz..mk..ncd..vt..fi..pht..2q..vk..sy..1gs..ooy..nk..u9..rt..ie..3d..wzg..my..uu3..esq..zsx..tgc..2ex..fe..ga..ti..ayi..sbk..qtc..mjf..xw..i11..gd..f4..fc..yv..wvg..xr..wdy..t8..ei..f1..st..dpl..psf..rx..th..pvo..awi..ka..rz..m3..9h..b0a..psh..qd..wg..izc..pev..yo..vy..q1x..3b..p5a..ed..jq3..4pz..sn..b8..jk..0o..w4..l5..x4..6nh..67l..hbe..x8..ld..oo..xo..vue..8e..p9..0zm..1d..kj..9v..gu..yp..h9..1s..ym..ivn..cmf..qh..xii..ftq..vxy..x9..0e..foa..ner..1h7..k0x..bq..ol..jcg..yhf..tx..lue..ag6..j2..8qa..td..6g5..t5..1s..kb..t4z..qrt..qlv..fct..lxd..74c..md..6pj..ell..ej..dw..nb..ri..ij..o8r..2p..cg..fb..kz5..gw..ka..rdj..0j..ub..mle..xw..dj6..mf..zge..e2..xnb..qq..ho..kn4..3w..foo..dc..pu..gp..yfh..z3..qfb..fl..4jg..zfv..yt..6mi..c9u..vss..gh..x9..4i5..hms..974..ofd..aq..iay..cn..bjh..bzw..dkm..p19..bup..nn..ow2..om..9rk..te..gkc..4py..tp..og..4b4..ois..y9..vfp..k2..cyz..2vq..uvp..v5..dip..hp..qrf..pxa..8ss..lm..y8..9gp..l1i..y7..xx..cm5..35..q6v..ixm..plr..ep..wxe..9so..lh..nv4..vxq..cm..bro..2sy..2lo..4a..7q..bud..rh..y7..hy..zsu..p86..gx..fy..o7a..xq..vwa..2ck..5o..iut..njm..1hy..1a..tc..es..rf..yki..g8..kz..fb..ppn..jo5..wl..mgf..k1..0vq..jce..rxs..154..z3n..nx..uzz..tk..o50..lg..4c..qs..dqj..6l..9az..sl..xar..jlc..jqi..kq..dwz..rzz..ec..wj..jb..84d..nlw..qw0..wyl..uj..pp..oz..8a..lbd..d0o..d3..za..0zb..uv..uuj..wpl..so..iht..q1..vl..1r..nn..bje..8a..euh..qgd..alj..ul..jmb..4j..kpu..kbw..ib..rax..gy..dhq..ity..fwf..b8..ssu..sxq..yh..zec..pou..lig..ojq..yd..yo9..ua..es..6vh..wks..jbe..piw..dfj..7ru..ktt..in..7kx..o6..2fd..zk..p2..84g..9vp..qs..07a..x0..8fg..d2..cje..wvq..c0j..rw..rzd..r9l..tqm..n3c..de..dwk..jz5..xvy..8j..r9a..sg..5dt..me..f7u..at..hd..lqg..yfp..b6..su..wv..5ln..9jb..cfs..vvw..nbt..3k3..hb..w6..lmo..vl..mke..qjt..u6i..ud1..p41..43l..vp..tf..aix..r3..tvd..cxq..67..ub..4x5..nc..dh..eb..k3n..qn..x8..gnj..xmb..yc3..lca..i2..h4..fb..oi..p3f..9k..hd..7i..siq..rx..wc..gg..sk..43i..ac..vek..xj..6r..ky..gb..ou..vz..xt..7d..grp..lt..7gv..1d..rb..bha..jc..hmw..6w..iiy..3wg..xak..kp1..3er..oj..khd..fn..y7..wq..mc..3a..np..ynk..qsp..ume..xis..xmz..wa..vh..d0..ze..1l..n1m..ba..akd..ve..uoi..7a..dxg..mh2..fv..li..rp..fse..ka..xs..rl..bd..qb..yy..1x..pwn..hjq..wew..i7..v1z..xb9..hj4..7v..to8..bak..hu1..irv..ofh..ff..nk..vk..rko..om..eb..tuw..c9..rwh..fnf..he..8px..yr..u1..bc..bh..em..ox9..0k..ot..prh..k7e..aa..mek..js..cs..4vh..k9..eno..02..hw..2l..fzi..xe..62o..gd..i5..tvs..z9d..ir..0tt..do..fl..kgx..lql..ka..uv..yo..km..jk..vb..rz..xe..iaq..0w..mb..ivg..lbl..10i..uyi..64..hh..9t8..bk..qaz..fs..fye..ww..q5z..asv..qc..0na..eb..nri..kv..ko..thh..9h..srt..fn7..fj..xj..c42..e6..zr..eo..r1..yp..az..sa7..uao..li..dj4..rv..nqy..eby..fp..cna..fph..hbu..4aq..pde..ewi..vh..e0..4o..81i..pd..35..5fn..jj..uk..0k..on..dy1..gb..o4g..hpp..lz5..muz..is..yq..jl..sf..8na..qv..qyb..qr..ii..nth..b0..yj..ehs..iq..ias..zs..wg..sc..af..ey..epm..osa..jip..xy..owk..we..a2..u1z..fn..exs..jw..1b..grq..ffk..z0..ipr..xrd..uz..8cg..ou7..yif..j6t..gh..qkp..yrr..at..crl..87..8vc..2xv..8nn..27d..of..qw..4il..hbi..nm..zgo..0r..8u..is..2fd..ox..ia..ara..df..4mv..lwy..d49..wax..be..ld2..lp..dwo..po..63..ai..ql..kuk..h7..jh..wyd..cf..o7..c2x..9f..ns..3l..gc..0y..pb..xbg..xb..wk..wt..6u..pk..av..ln..w1o..tek..b8..hj..6q..iq..ph..sld..wiz..hoc..rip..m9..jna..op..mz4..vo..m8o..m9z..efv..yya..zoj..m9f..8c..mxj..vwo..uqo..is..op1..a5l..ay..dn..gv9..iop..xgk..2r..hco..6k..nw1..ar..oj..5w..vw..vt..ciq..on..uj9..dhf..ava..kp..iv..4tu..zzj..jd..ctm..7i..qgy..hod..4s..vc..tr..tc..i4..mf..se..zf..xuq..sbs..9zh..23..su..1t1..wvq..9q3..zav..3q4..xnm..1ub..jnr..hk..kz..rh..mrs..og..gc..uos..9o6..c2..pv..gm..36..2ib..oty..39..yng..uzv..zx..4rn..kfz..o0h..97..jo..wlj..8d..6s..iz..o0..26..dnp..exy..ln..in..p3n..qo8..mtx..rw..odj..of..gl3..lb..alk..mcw..af3..syl..un1..opg..jz..id..nui..fv..45c..j36..eqz..1gh..ew8..ltm..xg..y9..nqq..ej..ex..4x..wry..ne6..br7..9d..y2..zfy..5t..uq..21j..teq..zdm..zmr..thp..mah..ul0..n3c..mb..en..gg..je..2u..qe..8bg..f7t..fs..9r..egi..tj..lgq..f2..91s..tpv..knk..7sz..sqc..ba..zr..cd2..ntp..sm3..hsw..yx..ia..m1..x2x..w9..jck..ly..cdd..bq..en7..d3..vf..gt..v8w..hn..yvc..qk..j6..7bi..o1..ri..ag9..dd..7zb..us..km..ec..qfs..xuw..cn..po..l6z..zgy..mv..nvq..az0..650..f1s..nf..mf..nwp..tj..ct8..fjj..yhl..xkw..ik..vsq..uvg..5lp..1r..smf..nfu..37..1ft..ct..h1..r0z..fk2..l6r..nw..ud..hz..7em..ee..02z..6u..7a..lg..uo..29l..hp..kdi..95..a4..p8c..fh..xkn..me..kpb..uz..fa..mpc..gq..op..n16..xi..dnu..dke..qd..wsn..zr..ypj..lyh..hs5..ya..zd..km..p48..fu..ma..9y6..js..hh..wt..j4..qm..qyl..0bq..o6l..pfx..zsp..332..lef..ub..we..vx1..lu9..ka..9un..qtk..wfq..u9..hh..gzb..b6..dr..7qi..aar..lc6..lr..jk..gom..qjn..ufk..q0e..ann..g5..s76..oz..xx..qx3..mp..ny9..wck..wn..mox..p2s..uf..hkk..la..qk5..ryz..19..fv..zo8..9pz..bg..ql..sm..ar3..o4p..pts..dso..8mk..aq..xn..8ek..rzc..zz..s6..gou..t7r..ixx..rx..umv..56e..9w..9fj..x1b..fp..tj3..2t..eyn..lc..ltc..mt..xc..oy1..hv..ad..jgi..dr..vge..yfa..csr..ly1..xm..rte..jb..li..0n..vw..tm..ts..nog..24w..oz..my..s2..9kn..z2..mi..us..9mn..xs..vv..46..lqi..gns..l0..qc8..2a..eq..kn..hh8..jcd..xkq..4k..ne7..sy..vx3..ddr..8j..hk7..is..ns..iy..01s..xt..ed..tlo..shl..kc..va..4g..vyh..01n..grq..fow..hr..ong..tu..sqs..nm..22..z9..im..wi9..20i..aqf..i6o..oji..ye..w8..oj..ck8..qo..ie..oa..kp6..w9..1je..d7..keo..msl..z9j..7l..6e..zo6..xfu..1up..yvi..pn..ij..wua..qe..nm..ur..qsc..e4g..j8..emx..wqu..lq..ep..wn..n7..o7y..7o9..crx..v6..xhx..jb..xnh..qpy..3l..d8..co..0hx..tv..dlb..etm..ae..ery..aqd..64y..pt..htn..ldl..z6..1ah..huc..19..jq..dgw..lul..iy..kof..tse..kjo..gf..sl..0gx..g6x..e4t..zx..6a..pve..ksp..sxc..tn..xcw..bp..1cl..to..xn..zy..evj..azx..wix..yjn..4nr..zu..ha..dg..db..7zb..lc..dk..cg..cqz..m89..zht..js..uca..an..fz..ewp..vy..na..pry..ai..ya..7xc..hhj..1u..xlu..sd..oy..za..lq..rw..qc..bn..pk..dtn..tq9..afk..tx..5e..gk..ds..flk..7gp..toz..9s..n99..jx..kz..qs..pt..50..91e..tj..hj..te9..r1s..az3..vq..yd..icu..px..4d..poi..6m..ljo..8y..gb..ua..r4..nnu..ve..sh..tx..7j..yko..u2m..loo..fv..lv3..aj..vmi..jcf..1d..co..qp..h5..au..sq..1r..h6o..ai6..zg..wf..ekw..klz..xw..1o..bvs..fu..kzh..46a..wxa..76a..jil..nw..bm..2ed..pc..5vc..dc..rw..bn..r3..m6..pnb..0ns..xw1..4v..sw..aj..eun..x7n..hif..n26..d7..eyw..8dm..vp..o5..6w..jen..gy..qlf..4g..3n5..so..vsa..sb..lm4..vb..feu..zv..na..zx3..6g..us4..rxc..pe..v4f..oaz..xxe..df..vs..ik..dcn..twu..ysh..ey4..ao3..jqq..ij..w6k..bo..ln..kh..qjz..cw..aw..vy..a6z..ht..bpu..jn..na..be..w5..4m9..x38..ydt..kd9..3v4..3y4..207..qip..ob..pq..3yk..pi..l4..sa..ifb..oou..qbz..d5b..8uz..j1..n8..9b0..dw..8b..4l..lxl..ch..der..vo4..vq7..kea..1g..jc7..tdh..ju..nd..w5x..qd..cx..ekn..nux..djh..jow..co..me..ktg..qq..ry..qpd..qn..ax4..8xr..i4f..vs..e6..ujq..9qu..gcj..rsc..ks..2r..w1a..nd..kxe..jpb..gx..vn..5u7..giq..jx..kkx..i5f..zii..gnu..1q..la..iod..7im..rm..6va..4p..jn..dx6..ng..qrt..pf..wbh..wi..hp..vv..vm..vz..xao..9nq..myr..q9l..dt..hz..kd..ogm..0z..1t..pw3..cv..bbs..bu..hkc..6s8..lu..th..l8m..gb..ff..4li..9h..wc5..0mf..2w..x27..69..qc..vaa..coc..yt..1a..4f..noy..sjs..5va..w3..vje..abz..01w..nah..in..tyo..coi..9ow..dc..zvr..0q..vnt..eba..vg..8ij..h4i..7v..mhs..npi..hwa..tto..c1..yuj..mnj..kqh..pfd..rny..vs..0a..ln..4a..apn..79..nv..yg..qav..5d..jn..dw..fj..w0..4ss..i1i..2y..ll..8ib..kc..0a..nk..vb..r8o..9z..afr..laj..e8..w1b..vee..y2e..eck..hw..2v..pr..ugx..ck..sa..4jd..kf..k4x..hjs..vw3..of..6g..vkp..g8e..mc2..qx..hoi..mv..aj..bva..mh..9g..fi..0e7..qd..07m..kl..av..vv..ygy..cu..x6..hr8..8b..ymp..i3..ek..cg..ri..tk..fi7..vgp..ddv..hk..cvj..1 How to use QTP and Microsoft.XMLDOM to verify an element value in XML

How to use QTP and Microsoft.XMLDOM to verify an element value in XML

Code Hacker

I recently had to test a .NET grid that did not have a way for me to easily see its row/cell data. After doing a little digging, I was able to find a method that returned to me the full text of a specified row. The only issue was that it was in an XML format. Luckily, though, I was able to get the cell data I needed by using the COM interface Microsoft.XMLDOM to create a QTP parser function.

Get text from specified node QTP example:

Here is an abridged version of the XML string that the grid’s.NET method was returning to me:

currentRow = currentRow = “<schAppt><ApptDate></ApptDate><ApptDay>THU</ApptDay><ApptNumber>37015</ApptNumber><ApptSetAnchorFlag></ApptSetAnchorFlag><Copay></Copay><Department>TA PRIMARY CARE</Department><ProviderName>TAPRIM2</ProviderName></schAppt>”

‘ First create a instance of the Microsoft XMLDOM object.

set xmlDoc = CreateObject(“Microsoft.XMLDOM”)

‘Next point to the XML string.

xmlDoc.Async=”false”

‘If this was a xml file rather then a xml string you would use xmlDoc.Load(“C:\myXML.xml”) instead
xmlDoc.LoadXml(currentRow)

‘ Find the specified element
strSearchNode = “ApptNumber”
‘getElementsByTagName returns a NodeList of all a elements with the specified element name

Set NodeList = xMLDoc.getElementsByTagName(strSearchNode)

For Each Node In NodeList
strCurrentNodeValue = node.text
strNodeFoundFlag = “True”
Next

If strNodeFoundFlag = “True” Then
appt = strCurrentNodeValue
Else
appt = “No node found matching the name you specified”
End If

‘This will Return the value of 37015
msgbox appt

To see this code in action check out my video post: How to test a web service with QTP

3comments
Daniel - June 29, 2015

Thank you Joe,

it was very useful.

Regards from Madrid

Reply
vijay prabakaran - October 30, 2015

could you please tell me how to retrive the content from this XML file??

C:/program files/nmap

C:/QTP/Nmap/Output

1

2

3

4

1

2

3

4

0

OXE_call_server

TCP

1

172.19.20.167

1

OXE call server

UDP

1

172.19.20.167

Reply
Click here to add a comment

Leave a comment: