tag:blogger.com,1999:blog-2902524569242410076.post472938014306152242..comments2024-03-18T23:23:54.609+06:00Comments on A Test Developer's blog: Introduction to JMeter Google PlugIn- Post ProcessorsShantonu Sarkerhttp://www.blogger.com/profile/04242703372249401023noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-2902524569242410076.post-6556934081808339752020-06-11T03:31:43.541+06:002020-06-11T03:31:43.541+06:00you need to have setup thread (or once only contro...you need to have setup thread (or once only controller) where you login and collect the token and use in all thread groupsShantonu Sarkerhttps://www.blogger.com/profile/04242703372249401023noreply@blogger.comtag:blogger.com,1999:blog-2902524569242410076.post-84785153327583000122019-12-30T20:11:25.833+06:002019-12-30T20:11:25.833+06:00Hi Bro,
I just want to use the data(userId) acros...Hi Bro,<br /><br />I just want to use the data(userId) across multiple thread group which has been extracted from login request. could you please help me in this.<br />I used Beanshell property to extract jwtToken and used it in all the upcoming thread groups but I can't use the same for userId.<br /><br />Thanks in advance.Anonymoushttps://www.blogger.com/profile/15372191461292175637noreply@blogger.comtag:blogger.com,1999:blog-2902524569242410076.post-41882975538976595902016-05-05T05:13:52.299+06:002016-05-05T05:13:52.299+06:00-> fifoPut, fifoGet, fifoPop, fifoSize.
These ...-> fifoPut, fifoGet, fifoPop, fifoSize.<br />These are spacial function for inter thread communication (communicate among thread group) . The queue looks like top to bottom (not tree). So, i suggest use function in thread group context not individual thread context(ctx.getThread().getThreadName() should not be used)see, full context list -> https://jmeter.apache.org/api/org/apache/jmeter/threads/JMeterContext.html<br /><br />you out put will be like that as, it shown current thread count (exact moment of call) try this call getThreadNum() <br /><br />These are provide by jmeter plugins and should be used as independent function (as declared), if you invoke from beanshell , you need to follow JSR-274 specification to access jmeter functions from beanshell (Java functions are simple and straightforward) .. I usually use JSR223 sampler with Java to make things simple & straight forward. <br /><br />Again, if you state more clearly about your objective, I can add some ideas or tricks. Shantonu Sarkerhttps://www.blogger.com/profile/04242703372249401023noreply@blogger.comtag:blogger.com,1999:blog-2902524569242410076.post-72809321805422306332016-05-05T03:58:50.292+06:002016-05-05T03:58:50.292+06:00Is it possible to use __fifoPut() in Beanshell scr...Is it possible to use __fifoPut() in Beanshell script? <br />I have something like this:<br />String threadName = ctx.getThread().getThreadName();<br />int indexOfDash = threadName.indexOf("-");<br />String currentThreadCounter = threadName.substring(indexOfDash+1);<br />String fileUrl = vars.get("fileUrl");<br />String fileUrl1 = "";<br />String size = "";<br />${__fifoPut(currentThreadCounter, fileUrl)};<br />${__fifoSize(currentThreadCounter, size)};<br />${__fifoPop(currentThreadCounter, fileUrl1)};<br />print("put to queue " + currentThreadCounter + " fileUrl :"+fileUrl1 + "; size:" +size);<br /><br />But the output shows that the fileUrl is empty:<br />put to queue 22 fileUrl :; size:<br />put to queue 5 fileUrl :; size:<br />put to queue 6 fileUrl :; size:<br />BonAvanturehttps://www.blogger.com/profile/09348642701840444639noreply@blogger.comtag:blogger.com,1999:blog-2902524569242410076.post-37619303174137535282013-05-30T17:11:06.472+06:002013-05-30T17:11:06.472+06:00JSON format is different from XML, you may find si...JSON format is different from XML, you may find similarity on way of using, but JSON is more like holding data/info in a object useful for passing data. And XML is a full markup language used in many purposes. For JSON basics, see this http://www.json.org/. Shantonu Sarkerhttps://www.blogger.com/profile/04242703372249401023noreply@blogger.comtag:blogger.com,1999:blog-2902524569242410076.post-41608346989896504512013-05-30T17:01:36.458+06:002013-05-30T17:01:36.458+06:00what is the main difference b/w JSON format and XM...what is the main difference b/w JSON format and XML format?Anonymousnoreply@blogger.com