Jmeter-CheatSheet

 

Functions and Variables

 Jmeter Time - ${__time(dd/MM/yyyy hh:mm:ss)}

UUID - ${__UUID()} 

Email (Random) - ${__V(${__UUID()}${__Random(1,90000000,)}@gmail.com)} Random - ${__Random(0,10)} 

Random Date - ${__RandomDate(,,2050-07-08,,)} 

Random String - ${__RandomString(10,abcdefg)} 

Time shift - ${__timeShift(dd/MM/yyyy,21/01/2018,P2D,,)} 

Convert epoch - ${__dateTimeConvert(1526574881000,,dd/MM/yyyy HH:mm,)} 

Upper Case - ${__changeCase(Avaro omnia desunt\, inopi pauca\, sapienti nihil,UPPER,)}

Lower Case - ${__changeCase(LABOR OMNIA VINCIT IMPROBUS,LOWER,)} 

URL encode - ${__urlencode(Word "school" is "école" in french)} 

URL decode - ${__urldecode(Word+%22school%22+is+%22%C3%A9cole%22+in+french)} 

Thread Num - ${__threadNum} 

Thread Group - ${__threadGroupName} 

Escape HTML - ${__escapeHtml("bread" & "butter")} 

Unescape HTML - ${__unescapeHtml(<Français>)} 

CRLF - ${__unescape(\r\n)} Split - ${__split(${VAR},VAR,|)} 

Machine IP - ${__machineIP} 

Machine name - ${__machineName} 

Groovy 

Properties put - props.put("protocol", "${protocol}");

 Properties get - props.get(“protocol”); 

Beanshell Nested Variables - ${__BeanShell(vars.get("Var${N}")}

JMeter get var - vars.get(“HOST”); 

JMeter put var - vars.put(“MSG”, “Success);

jmeter-testing-cheat-sheet-v1.0.pdf (squarespace.com)





Comments

Popular posts from this blog

Command Line tool for Android and iOS [ adb and cfgutil ]

Convert Chrome recording to Vugen Script