Posts

Jenkins Pipeline Setup for Test Automation

Image
Hope you guys are doing good. This is a small bit of my experiences while configuring test automation with continuous integration. Initial need : My need was to find a way to run a  Performance Test (Jmeter) UI automation Test (Robot) Send an Email As a solution, I used Jenkins Pipeline to achieve my goal. There might be a lot of other areas that you can use, but with some simple, common methods you can build a Jenkins pipeline script. These are the pipeline concepts that I have used Node : A node is a machine which is part of the Jenkins environment and is capable of executing a Pipeline. Stage : A Stage block defines a conceptually distinct subset of tasks performed through the entire Pipeline (e.g. "Build", "Test" and "Deploy" stages), which is used by many plugins to visualize or present Jenkins Pipeline status/progress. Dir(<Your directroy>){} : Specifying a directory that you want to execute a specific...

Control Jmeter test properties with Simplified Property Function ( __P ) in command line

Image
Hi .. how's it going? I thought of sharing something which I found out recently while I was generating a performance script in Jmeter with Continuous Integration using Jenkins. As you know we use the JMeter GUI mode to PLAN and Non-GUI mode to RUN JMeter scripts. As we design different tests with different thread groups, to execute our performance test plans we need to assign different values to Threads, Ramp-Up Time, Loops mainly. My main problem was the need to change this value from time to time. If we use the GUI mode to change it and run, It'll work. But It takes some additional amount of time to do that. So the solution I found is with __P which is the simplified property function of JMeter. What you have to do is really simple. With __P you can assign a variable in your JMeter script and pass it in your command line with -J argument. For example, if your defined variable was ' Threads ' and if you add -JThreads=5 in you JMeter command. The variable Thr...

Welcome to Test Automation

Image
What is Test Automation? When it comes to test automation there can be so many definitions that you can find if you just googled it. So, this is test automation as I feel about it (Note this definition will never ever give you marks at your QA examination 😉). Again, as I feel test automation is a way of making your life easy, interesting and challenging (FUN AND LESS BORING) at your work place. In a formal way It’s using the code to make your computer run most of the tests that you have to run manually. If you wonder, why I said, “most of”? The reason is YOU ARE SMARTER !! so simply you can’t achieve 100% test coverage by test automation. When do we need to Automate tests? Well to answer that question we have to look at several points. Mainly both Automated testes and Manual tests will change their paths at one point at the road. Until then they have to work together. If we elaborate a bit more and automated test can be defined as an improved subset of the manual tests that you h...