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/watir is the way to go. So here I am.
None the less, no matter in which process I decide to go down (retrieving the XML via the GUI or REXML) I will still need to establish a way to identify the line from the XML I require removing the XML tags from the line and storing the data as a variable. I have been looking around all over the net but I'm unsure of what the words are that I need to Google on, so I’m going around in circles. >From my limited understanding I would assume it be possible for me to identify the line in which I wish to set a variable to, but removing the <shortname> & </shortname> from that line so that the variable is just set to TESTA... am I wrong? Thanks for your help 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 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 your script. > > Richard > > -- > Richard Lawrence > Certified Scrum Coach > Founder and Principal Consultant, Humanizing Work, LLC > 303-895-7688 > [EMAIL PROTECTED] > > > > On Wed, Dec 3, 2008 at 9:29 PM, winstan <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I'm trying to capture a variety of data in an xml response from a web > > service, that is served up via IE and the GUI, however when I > > interrogate the data using the IE dev toolbar I notice that all the > > element properties render useless as they are all of the same nature > > and properties. > > > Bellow is an extract from an example xml response in which I want to > > capture the given Shortname and Long name (TestA) and set them as > > variables for use later in the script when accessing another system > > and validating the data between the two GUI's. > > > <ShortName>TESTA</ShortName> > > <LongName>TestA</LongName> > > > I hope the information provided is sufficient and understandable. > > > Thanks again- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---