Forum Discussion
Wendigo
12 years agoOccasional Contributor
Ok I have looked at this some more and I figured out that the problem is the CDATA (not mentioned in my first post).
So here we try again...
I can get the following into a parameter (with help of steps described here: http://www.soapui.org/Functional-Testin ... cdata.html):
(But I cant do a xPath on that data because of the CDATA and that the XXX_HEADER value is a string in CDATA and not a tagged value).
<![CDATA[ */(function(window,Kalle,config){config=Kalle.AnkaConfig={SOME_URL:"https://xxx:8008/yyy/zzz/123123",XXX_HEADER:"KalleAnka 1234567890", KALLE_URI_URI:"https://xyz.com/xyz.xd.proxy.html",LOCALE:"sv-se",STATUS:"incomplete",A_URI:"http://aaa.com/b.php",PARAM1:"Hi there ",PARAM2:"https://bbb.com/1.js"};config.container=window.document.getElementById('a-container');window.Hej=Hej;})(this,window.Hej||{});/* ]]> */</script><script type="text/javascript" src="https://hej.com/abc/hej.js" async="async" defer="defer"></script></div>
Any idea how I can get the value of XXX_HEADER (KalleAnka 1234567890) into a new parameter ?
BR
/Wendigo
So here we try again...
I can get the following into a parameter (with help of steps described here: http://www.soapui.org/Functional-Testin ... cdata.html):
(But I cant do a xPath on that data because of the CDATA and that the XXX_HEADER value is a string in CDATA and not a tagged value).
<![CDATA[ */(function(window,Kalle,config){config=Kalle.AnkaConfig={SOME_URL:"https://xxx:8008/yyy/zzz/123123",XXX_HEADER:"KalleAnka 1234567890", KALLE_URI_URI:"https://xyz.com/xyz.xd.proxy.html",LOCALE:"sv-se",STATUS:"incomplete",A_URI:"http://aaa.com/b.php",PARAM1:"Hi there ",PARAM2:"https://bbb.com/1.js"};config.container=window.document.getElementById('a-container');window.Hej=Hej;})(this,window.Hej||{});/* ]]> */</script><script type="text/javascript" src="https://hej.com/abc/hej.js" async="async" defer="defer"></script></div>
Any idea how I can get the value of XXX_HEADER (KalleAnka 1234567890) into a new parameter ?
BR
/Wendigo
Related Content
- 5 years agonewtoapi