My Account

JMETER : contains unsafe characters, will escape it, message:Illegal character in query at index.

+4 votes
846 views
asked in Technology Questions by harbind singh (200 points)
In Jmeter while running a recorded script an error is coming while selecting Ajax dropdowns " contains unsafe characters, will escape it, message:Illegal character in query at index.".

Please Provide a Solution for this problem

1 Answer

+2 votes
answered by mika (1,290 points)
selected by harbind singh
 
Best answer

You just need to encode your special characters such as % , space , @, # in the URL 

For this just go to your recorded script and check encode check box in front of special character values then and run it.

For more information for unsafe characters see And search unsafe in this j meter doc.

 

I hope you got the point.

commented by monika (2,020 points)
I was facing the same error when I have recorded a script in which I had to select a ajax drop down ,it was fine in recording somehow when I started the script  I found this error mentioned above . then I saw my script on those steps where I had selected hotels from the drop down there were some spacial char so i checked (Encode? ) check box and saved the script and ran again. now it was fine .
it was helpful thanks for it!

Related Questions

+2 votes
0 answers 463 views
+3 votes
1 answer 3,664 views
0 votes
0 answers 138 views
+12 votes
1 answer 636 views
asked in Technology Questions by krish Expert (6,310 points)