Posts

Showing posts from September, 2015

Reporting API - Selenium / Test Automation framework

Image
I have been wanting to use this reporting API ever since I heard of it, finally I got my hands dirty with the version 2.0 and I must say it's pretty impressive - If you use either Java or .Net for testing then this is what you need - Extent Reports This is how a sample html report looks like HTML report I shall not go about rewording how to use it, their documentation is pretty good:  http://relevantcodes.com/Tools/ExtentReports2/ExtentJava.html Quick snapshot: Using Maven to download the dependencies Using JUnit for logging and reporting Using TestNG for logging and reporting If you don't want the logging the easiest way without changing anything is using the TestNG Listener -  http://relevantcodes.com/testng-listener-using-extentreports/ Source: http://relevantcodes.com/extentreports-for-selenium/ Happy Test Reporting :P

Intellij Musing - Test Automation framework with Selenium Cucumber TestNG Maven Jenkins and GIT

Image
Pull the project from the scm repository in my case Git In IntelliJ File -> New -> Project from existing sources and navigate to the root directory Choose Import from external mode - Maven/Eclipse as need be  Update the pom.xml Maven clean run / Generate source and Update Folders Options to run: Right click and run the individual feature file Right click and run the TestNG.xml file - To run tests in parallel Right click and run the individual cucumber runner file - To run tagged tests Reports: Cucumber pretty format - Index.html Cucumber JSON report Customized html report

Facebook Infer - Detect bugs before you ship

Image
What is Infer? An Opensource tool to detect bugs in Android and iOS apps before they ship -  http://fbinfer.com/ Documentation (Getting Started Guide) -  http://fbinfer.com/docs/getting-started.html Quotes from "Peter O’Hearn" - engineering manager at Facebook When you have to write a software test, often you are going after a specific bug. That means you’ll need to exercise all of the funny cases that will get you to that bug. Static analysis allows you to execute the code symbolically It’s important to know that while things like Infer have made us faster and more successful, they’re not pieces of the Facebook competitive differentiator another huge benefit of open source is in recruiting. By showing you can open source stuff if you built it at Facebook, then you get excellent, independent engineers who don’t require as much ramp up time, since they’re used to working on these open source projects. So there’s far less training. Source: https://c...

Switching from Eclipse to IntelliJ

Image
Image Source:  http://www.nevndave.com/2005/11/ So I have done this thrice but never succeeded in switching for obvious reasons. This time I did and I must say I was missing out on a lot of cool stuff, if you are doing what I am here is something that might help: Switching from Eclipse to IntelliJ : https://www.jetbrains.com/idea/help/eclipse.html and of-course the shortcuts: https://www.jetbrains.com/idea/help/map-of-shortcuts.html Eclipse IntelliJ IDEA Action Shortcut Action Shortcut Code completion Ctrl+Space Basic completion Ctrl+Space Smart completion Ctrl+Shift+Space Statement completion Ctrl+Shift+Enter Quick access Ctrl+3 Search everywhere Shift x 2 Maximize active view or editor Ctrl+M Hide all tool windows Ctrl+Shift+F12 Open ty...