hi,

Variable abc initialized in user defined variables.
or we can use this value from csv file


I used all javascript functions
escape()<http://www.w3schools.com/jsref/jsref_escape.asp>
,encodeURI() <http://www.w3schools.com/jsref/jsref_encodeuri.asp>,
encodeURIComponent()<http://www.w3schools.com/jsref/jsref_encodeuricomponent.asp>but
did not get success


Is any other to send url value which has single quote in it becuase this
function in jmeter are not working means are not encoding the if variable
value that contains single quote

On Thu, Jan 20, 2011 at 3:20 AM, Felix Frank <f...@mpexnet.de> wrote:

>
>
> On 01/20/2011 07:09 AM, Rajiv Nanduani wrote:
> > Hi all,
> >
> > In jmeter i have to pass around 15 to 20 url parameters from csv file . I
> am
> > using the javascript function to encoding the url parameters I am not
> using
> > the Jmeter send parameter with request table option. there is also option
> > aviable to encode the parameters.
> >
> > Here problem is that when ever my parameter value hassingle quote that
> time
> > it is not working means Jmeter doen not run the script
> >
> > like my valriable   abc = 'rajiv'
> >
> > then i am sending abc value in request by using javascript function
> >
> > /search?q=${__javaScript(encodeURIComponent('${abc}');)}
> >
> > it is working fine if my value does not contain single quote
>
> How and where is the variable abc initialized?
> In a BeanShell Processor?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>


-- 
RAJIV KUMAR

<http://rajivkumarnandvani.wordpress.com/>
<http://learnqtphelp.blogspot.com/>

Reply via email to