Quality Testing

Quality is delighting customers

For Invalid Users i am using this function as given in the URL: http://blazemeter.com/blog/jmeter-using-functions

Input :

Username: ${_RandomString(12,abcdin1208)}

Password: ${_RandomString(12,abcdin120834^!)}

but in output i am getting same data as given in input value of POST request body

Output:

POST data:
txtUserName=${_RandomString(12,abcdin1208)}&txtPassword=${_RandomString(12,abcdin120834^!)}&Login=Sign+in

How to rectify this?

Views: 309

Reply to This

Replies to This Discussion

Hi,

Make double underscore instead of single while writing Jmeter functions.

${_RandomString(12,abcdin1208)} should be written as ${__RandomString(12,abcdin1208)}

You can use Options >> function helper dialogue  feature in jmeter to get correct syntax of jmeter functions

Hope this helps :)

thanks for your update.

I am using 2.3.4 version of jmeter,

Function helper of RandomString is not available in this version.So i cant able to proceed further.

Try ths syntax ${__RandomString(12,abcdin1208)}. Add an extra _ bwteen curly brace and Randomstring text

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service