[wtr-general] Re: Capturing data within an xml

2009-01-07 Thread winstan
Hi Guys, Another question for you bunch as you seem to be the most helpful out there (have posted on the comp.lang.ruby group with no response). I have been trying to make requests to the webserver via SOAP adapting an example i had found on another site. Am i looking at the right thing for what

[wtr-general] Re: Capturing data within an xml

2008-12-23 Thread Bret Pettichord
I was testing an rss feed and used Mechanize + Hpricot to do so. I got the url from the application using Watir and then passed it to Mechanize to get the page and then used Hpricot to validate it. Bret srinivas subramanian wrote: > Hi, > > Its been quite some time, since i've started using Wa

[wtr-general] Re: Capturing data within an xml

2008-12-22 Thread srinivas subramanian
Hi, Its been quite some time, since i've started using Watir. Its awesome. I've used Hpricot to test xmls. It worked out well for me. Please refer: http://code.whytheluckystiff.net/hpricot/ Thanks, Srinivas On Tue, Dec 23, 2008 at 5:25 AM, winstan wrote: > > Hi Bret, > > No i havent used Mechan

[wtr-general] Re: Capturing data within an xml

2008-12-22 Thread winstan
Hi Bret, No i havent used Mechanize. Nor have i heard of it to be honest. Before i jump into it and start playing around with it, i would like to ask have you used it in the means in which im trying to access the xml defined above? Cheers On Dec 23, 3:08 am, Bret Pettichord wrote: > Have you c

[wtr-general] Re: Capturing data within an xml

2008-12-22 Thread Bret Pettichord
Have you considered using Mechanize instead of Watir? That's what I've used when I've had to test XML. Bret winstan wrote: > Hello Again, > > After playing around with rexml with some of the URL’s provided in > this thread and other sites I have found I have established that you > are in fact c

[wtr-general] Re: Capturing data within an xml

2008-12-21 Thread Richard Lawrence
My guess at what's going on is that View Source gives you the source XML, but IE#html gives you the XML transformed into HTML for pretty viewing in the browser. Not sure how you get at the untransformed XML with Watir. Perhaps someone knows of a way to get IE not to transform the XML (or to replac

[wtr-general] Re: Capturing data within an xml

2008-12-21 Thread winstan
Hello Again, After playing around with rexml with some of the URL’s provided in this thread and other sites I have found I have established that you are in fact correct and that rexml would be the way to go. However, I am still making requests and receiving responses to and from the WS via the UI

[wtr-general] Re: Capturing data within an xml

2008-12-04 Thread Richard Lawrence
You really don't want to be reinventing XML parsing (badly) with string substitution or regular expressions. Given a string with your XML in it, the REXML code to get the values you want would look something like the following. You'll have to use something like Net::Http to actually make the web s

[wtr-general] Re: Capturing data within an xml

2008-12-04 Thread Alex Collins
A useful general principle if you are wondering if something will work is to try it. In Ruby, start IRB (type irb at the command line) then type your ruby code. Irb will show you the results after each line. You do not need $ signs (ruby global variable) but you must certainly quote your s

[wtr-general] Re: Capturing data within an xml

2008-12-04 Thread winstan
Would i be able to do some thing like this: $a = TESTA $b = $c = $d = a - b $e = d - c which in turn would make $e "TESTA"? On Dec 4, 4:55 pm, "Richard Lawrence" <[EMAIL PROTECTED]> wrote: > Why are you accessing the web service using Watir and IE? Will end > users of the web service access

[wtr-general] Re: Capturing data within an xml

2008-12-04 Thread winstan
Hi Richard, To be quite honest with you here I am not entirely sure as to why the business wants automation around the accessing the WS with a browser. I’m relatively new here and have been set the task in my early days to spike various automation tools and from what I have read and heard ruby/wa

[wtr-general] Re: Capturing data within an xml

2008-12-03 Thread Richard Lawrence
Why are you accessing the web service using Watir and IE? Will end users of the web service access it with a browser? If not, and if you're just using the web service to get data to use in other GUI tests, you might find something like Net::Http and REXML to be more appropriate for this part of yo