10 messages in com.canoo.lists.webtestRe: [Webtest] Re: how to store table ...| From | Sent On | Attachments |
|---|---|---|
| Chang Su | 03 Feb 2007 16:27 | |
| Chang Su | 04 Feb 2007 12:09 | |
| Marc Guillemot | 05 Feb 2007 07:24 | |
| Chang Su | 05 Feb 2007 08:50 | |
| Michael Habbert | 06 Feb 2007 00:22 | |
| Chang Su | 06 Feb 2007 08:58 | |
| Sven Haiges | 07 Feb 2007 00:36 | |
| Marc Guillemot | 07 Feb 2007 01:11 | |
| Chang Su | 07 Feb 2007 08:59 | |
| Marc Guillemot | 08 Feb 2007 23:18 |
| Subject: | Re: [Webtest] Re: how to store table cell value as property..need help!!![]() |
|---|---|
| From: | Chang Su (chan...@yahoo.com) |
| Date: | 02/07/2007 08:59:31 AM |
| List: | com.canoo.lists.webtest |
oh, Marc,
let me explain a bit more.
If the table has only a couple of rows and columns, I can use step <storeXPath> several times to store the cell to property. However if the table has many rows, I will need to use script such as groovy to do it for efficiency, is that riht?
so suppose I use groovy, <scriptStep description="Save data cell" language="groovy">
what is way to obtain me the data cell given xpan string such as //span[@id='form2:table1:row0:0:col0:_id13'], //span[@id='form2:table1:row0:0:col0:_id14'], //span[@id='form2:table1:row0:1:col0:_id15'], ... and more.
thanks a lot,
Chang
--- Marc Guillemot <mgui...@yahoo.fr> wrote:
Hi Chang,
I don't understand why the size of the table matters. It's not clear to me which cell you want to save.
Marc.
Chang Su wrote:
Hi,
I think I was not clear on my question before.
I need to store/save table cell value as webtest property or to a file that I can use later.
I tried to use <storeXPath> it worked with a table with fixed rows and columns.
<storeXPath
xpath="string(//span[@id='form2:table1:row0:0:col1:_id14'])"
property="first_device" />
<storeXPath
xpath="string(//span[@id='form2:table1:row0:1:col0:_id13'])"
property="first_type" />
it worked with a table with fixed small number of rows and columns.
My table has fixed number of columns but could have 1 row or 50 rows.
How do I store XPATH of a table with dynamic number of rows?? Should I use some <scriptStep> here (because it is better to put in a loop, right?)
any suggestion is appreciated!!
Chang
--- Michael Habbert <Mich...@netpioneer.de> wrote:
Hi Chang Su,
Chang Su wrote:
did not get any reply so I resend this.
I would think this is a common task..someone had to encounter this before.
If no one answers to your question - it may imply, that your question is not sufficiently understood or no one has a solution.
[..]
When I navigate bui pages using webtest, how do I dump tables in a BUI page to a file (or save
somwhere)
?
I mean besides using 'save' in webtest which generally saves the whole html file, is there a way to jsut save table contents to a file or somewhere??
[...] so what I your purpose? So we may understand your problem better. Why do you want to save the table?
-- Mit freundlichen Grüßen
------------------------------------------------------------------------
Michael Habbert
Senior Developer Netpioneer GmbH, Beiertheimer Allee 18, D-76137 Karlsruhe Geschäftsführer: Axel Jahn HRB: 107521 Handelsregister Mannheim
Tel: 0721 / 920 60 21 Fax: 0721 / 920 60 30 E-Mail: mich...@netpioneer.de www: http://www.netpioneer.de
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
____________________________________________________________________________________
Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/




