How many late nights did you spend at the office to do the regression testing? how much time did you spend on clicking same buttons and same user flow? was it not boring? can we not automate this?
The AEM OOTB hobbes framework will help you to automate the UI testing, it has a lot of features you can create a test suite, add test cases to test suite’s, adding actions to test cases and reusing test cases etc…
If you are familiar with JUnit’s or any testing framework then it is very easy to understand, the difference between JUnit and hobbes is the JUnit’s executes at server side and the hobbes framework executes at client-side and like any other testing framework the hobbes also support writing a test case and test suite
Step 1: creating clientlibs
Go to the crxde light and right click on etc/designs
Create a new folder called toolkit
Under toolkit create a new folder called “clientlibs” and the primary type for this is cq:ClientLibraryFolder
Add the below properties to the clientlibs folder
Step 2: Write test cases
Create a new js file and add below code, the only thing which you need to understand to write test cases on hobbes framework is Jquery based selectors and events, if you see below code the test suite takes two parameters suite name and script path
A technology enthusiast and a professional blogger from India. Through out my IT career, I have had the pleasure of working on various new technologies and built products like www.ziprides.com and some other products. Unfortunately, my attempts have not given me the desired results and as a result, I have finally decided to build a professional blog where I would like to share all my learnings and hoping to learn from other enthusiasts around the world.