How Blazemeter Helped me in Solving Recording Issues With JMeter
In this post, the author is going to tell you how Blazemeter helped him in solving recording issues with JMeter.
Join the DZone community and get the full member experience.Join For Free
i was working on a gig where i need to automate instagram posts by uploading multiple photos and by adding random hashtags. once the photos pushed to the queue, it should publish on a specified date and time. in this post, i am going to tell you how blazemeter helped me in solving recording issues with jmeter.
is it possible to automate instagram photo upload?
there are no official apis available to upload photos to the instagram queue. it is illegal to leverage automate postings in instagram. the existing tools such as s chedugram , h ootsuite , later, or other tools, do not use any apis to schedule the photo upload.
if you take schedugram, they do not use any apis to post photos to your instagram feed. how it works is 100% automation . like a real person sitting behind the computer, uploading your photos on behalf of you, and posting your data when the time arrives. schedugr.am specializes only in instagram, unlike hootsuite where you can manage multiple social accounts.
how blazemeter helped me
i was trying to automate instagram via schedugram. it is like automating the automation tool. following are challenges i was facing with multiple tools:
- i evaluated jmeter, hpe loadrunner (truclient web) and other windows based automation tools.
- using truclient web protocol, i was able to automate everything except the file uploading process where the help manual stated that to contact hpe for the custom code. see this page for more details.
- other windows-based automation tools don’t meet my requirements.
- using jmeter, i was able to record, but most of the client side rendering didn’t record.
after spending a couple of hours, i thought why not try blazemeter? i have had an account with blazemeter, it is free to sign up. i used blazemeter chrome add-on to record the business flow, and then i exported it as jmeter file.
in jmeter script, i can clearly see all the calls including file upload requests. basically, it was rest calls, then i validated using chrome devtools where i can see the same calls. but when i was trying in jmeter, it didn’t record those rest calls.
there is only one call to upload photos, add captions, date and time for multiple photos. during the upload, the photos are being uploaded to their cloud and it gets converted into two formats — one as the actual format and another one as thumbnails.
it is not possible to upload the photos from your desktop, instead, you can upload the photos to your website root folder and map that url in the rest call.
in jmeter, the post rest request where the actual schedule is happening, there you need to map the urls and other details. in this way, you can automate instagram via schedugram. all you need is a valid instagram and schedugram account.
the above tutorial is only for educational purpose. all trademarks and registered trademarks are the property of their respective owners.
your turn: have you tried automating any such scenarios?
Published at DZone with permission of NaveenKumar Namachivayam, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.