jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Masters,Louis" <Louis.Mast...@fhlbny.com>
Subject RE: case insensitive xpath assertion?
Date Mon, 11 Aug 2014 11:37:17 GMT
If that doesn't work you can try:

translate('some text','abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')

It's an old hack for old xPath.




> -----Original Message-----
> From: Peter Peterse [mailto:peter@peterse-uithuizen.com]
> Sent: Sunday, August 10, 2014 2:24 AM
> To: user@jmeter.apache.org
> Subject: Re: case insensitive xpath assertion?
>
> Hello,
>
> I'm not an expert but, did you try the function something like:
> //TextList/Text/upper-case(BaseText)="JOHN"
>
> Regards,
> Peter
>
> mhudson1976@aol.com schreef op 8-8-2014 17:34:
> > //TextList/Text/BaseText="JOHN"
> >
> > and the input data is "JOHN"
> >
> >
> > but the system converts it and saves it as "John"
> >
> >
> > so the above test will fail.  And changing the data is not an option
> on such a large scale.
> >
> >
> >
> > -----Original Message-----
> > From: Masters,Louis <Louis.Masters@fhlbny.com>
> > To: 'JMeter Users List' <user@jmeter.apache.org>
> > Sent: Fri, Aug 1, 2014 8:36 am
> > Subject: RE: case insensitive xpath assertion?
> >
> >
> > Can you post your xpath assertion so I can try it out.
> >
> >> -----Original Message-----
> >> From: mhudson1976@aol.com [mailto:mhudson1976@aol.com]
> >> Sent: Thursday, July 31, 2014 4:10 PM
> >> To: user@jmeter.apache.org
> >> Cc: matthew.hudson@here.com
> >> Subject: case insensitive xpath assertion?
> >>
> >>
> >> I have a slew of Jmeter scripts that all are expecting the avalue to
> >> come back as it was sent.  In this case XML sent
> >> with<Name>JOHN</Name> would be returned unmodified in all caps.
> >> However our system has changed, and now will modify the data in this
> >> element sothat it will be returned as <Name>John</Name>.  So now
all
> >> ofthese jmeter scripts are failing now because they use xpath
> assertions. Is there a way to modify
> >> a xpath assertion so that it is caseinsensitive?   And no, I don’t
> have
> >> the option to change the inputdata to “John” to avoid this.
> >>
> >> Thanks
> >>
> >> Matthew
> >
> > Confidentiality Notice: The information contained in this e-mail and
> > any attachments (including, but not limited to, any attached e-mails)
> > may be legally privileged and confidential. If you are not an
> intended
> > recipient, you are hereby notified that any dissemination,
> > distribution or copying of this e-mail is strictly prohibited. If you
> > have received this e-mail in error, please notify the sender and
> permanently delete the e-mail and any attachments immediately.
> > You should not retain, copy or use this e-mail or any attachment for
> > any purpose, nor disclose all or any part of the contents to any
> other
> > person. Thank you.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > For additional commands, e-mail: user-help@jmeter.apache.org
> >
> >
> >
>
>
> --
> Met vriendelijke groet,
>
> Peter Peterse
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org



Confidentiality Notice: The information contained in this e-mail and any attachments (including,
but not limited to, any attached e-mails) may be legally privileged and confidential. If you
are not an intended recipient, you are hereby notified that any dissemination, distribution
or copying of this e-mail is strictly prohibited. If you have received this e-mail in error,
please notify the sender and permanently delete the e-mail and any attachments immediately.
You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose
all or any part of the contents to any other person. Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Mime
View raw message