Hi,

 

I have a .jsp file with dynamic contents. On that page, a list of numbers is
displayed from which I want to retrieve the minimum value.

First I wanted to do this purely with an xpath expression, but since the
numbers where compound, a translate was required and that returned only a
single value instead of the list (actually too complex to explain)

 

Then I wanted to try it with extracting the numbers using an storeXPath
expression, and manipulate the contents of the property with ANT. However,
it seems that storeXPath only stores the first number in the set.

 

Below, part of the contents of the page is included.

 

This is the statement:

 

<storeXPath

      description="bla"

      xpath="(//tr[preceding-sibling::tr/td='On Required
Date']/td[5])/text()"

      property="availQtys"

/>

 

When typing the xpath expression in Webtest recorder, the result is :

72 517 kg

72 517 kg

71 517 kg

 

When the above statement is executed in Webtest, the result is:

72 517 kg

 

Does anybody have a solution for this problem?

 

Thanks in advance!

David

 

 

Part of the jsp page:

<TR>

<TD class="tablerow" align="center">01-08-2009</TD>

<TD class="tablerow" align="left">SO (1196700 - 1)</TD>

<TD class="tablerow" align="left">SO</TD>

<TD class="tablerow" align="right" nowrap>1 000&nbsp;kg</TD>

<TD class="tablerow" align="right" nowrap>72 517&nbsp;kg</TD>

<TD class="tablerow" align="right" nowrap>-54 918&nbsp;kg</TD>

<TD class="tablerow" align="left">PLASTRUCO </TD>

<TD class="tablerow" align="left"> </TD>

</TR>

<TR>

<TD class="tablerow2" align="center">01-08-2009</TD>

<TD class="tablerow2" align="center">On Required Date</TD>

<TD class="tablerow2" align="center"></TD>

<TD class="tablerow2" align="center"></TD>

<TD class="tablerow2" align="right" nowrap>72 517&nbsp;kg</TD>

<TD class="tablerow2" align="right" nowrap>-54 918&nbsp;kg</TD>

<TD class="tablerow2" align="center"></TD>

<TD class="tablerow2" align="center"></TD>

</TR>            

<TR>

<TD class="tablerow" align="center">02-08-2009</TD>

<TD class="tablerow" align="left">SO (1196390 - 1)</TD>

<TD class="tablerow" align="left">OH</TD>

<TD class="tablerow" align="right" nowrap>1 300&nbsp;kg</TD>

<TD class="tablerow" align="right" nowrap>72 517&nbsp;kg</TD>

<TD class="tablerow" align="right" nowrap>-56 218&nbsp;kg</TD>

<TD class="tablerow" align="left">PLASTRUCO </TD>

<TD class="tablerow" align="left"> </TD>

</TR>

<TR>

<TD class="tablerow" align="center">02-08-2009</TD>

<TD class="tablerow" align="left">SO (1196392 - 1)</TD>

<TD class="tablerow" align="left">OH</TD>

<TD class="tablerow" align="right" nowrap>1 300&nbsp;kg</TD>

<TD class="tablerow" align="right" nowrap>72 517&nbsp;kg</TD>

<TD class="tablerow" align="right" nowrap>-57 518&nbsp;kg</TD>

<TD class="tablerow" align="left">PLASTRUCO </TD>

<TD class="tablerow" align="left"> </TD>

</TR>

<TR>

<TD class="tablerow" align="center">02-08-2009</TD>

<TD class="tablerow" align="left">SO (1196780 - 1)</TD>

<TD class="tablerow" align="left">SO</TD>

<TD class="tablerow" align="right" nowrap>1 000&nbsp;kg</TD>

<TD class="tablerow" align="right" nowrap>71 517&nbsp;kg</TD>

<TD class="tablerow" align="right" nowrap>-58 518&nbsp;kg</TD>

<TD class="tablerow" align="left">PLASTRUCO </TD>

<TD class="tablerow" align="left"> </TD>

</TR>

Reply via email to