jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: Regex problem
Date Thu, 04 Mar 2010 06:53:41 GMT
use an XPATH extractor not a regex, its easier for your case. Assuming the
span is in a tr
then
//tr[td/span/@title=''*Report_2_1267603231425*']/td[position()=6]/text() -->
Check what the cell number is , Im assuming it is is 6 based on the snippet
you provided. You can test out XPath expressions in Firefox using XPather ,
there are other plugins as well

The Report_2_1267603231425 can be a variable too.
For a regex you'd need to use single line mode and match the id and <td>
6(or whatever) times and then extract the text, can be done but an XPath is
far easier.
regards
deepak



On Wed, Mar 3, 2010 at 9:50 PM, Ravindra Gupta <rav.gupta@gmail.com> wrote:

> Hi All,
>
> My response looks like:
>
> <span title="*Report_2_1267603231425*" >RP_Trend_2_126760323...</span>
>
>
>            </td>
>            <!--  PR# 42613    show display name for the user -->
>               <td class=".tdStyle" align="center">buyer1</td>
>               <td class=".tdStyle" align="left">
>                 <span title="" ></span>
>             </td>
>            <td class=".tdStyle" align="center">
>                   Mar 3, 2010 1:35 PM
>               </td>
>               <td class=".tdStyle" align="right">TREND
>                   &nbsp;
>
>
>
>                         <img
> src="/expensemap/jsp/analytics/images/icon_report.gif" border="0"
> alt="Report">&nbsp;
>
>
>               </td>
>            <td class=".tdStyle" align="center">FAILED
>
>
>             </td>
>             <td  class=".tdStyle" align="center">
>
>
>
>                         &nbsp;
>
>
>             </td>
>             <td class=".tdStyle" align="center">
>                 <input type="checkbox" name="list"
> onClick="enableDisable(15);" value="294:*FAILED*:34:TREND"></td>
>        </tr>
>
> I have to capture FAILED status where *Report_2_1267603231425* is uniquely
> identified.
> I have tried various possibilities not able to succeed.
> Can someone please let me know how it can be done?
>
> Thanks in Advance
> -rav
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message