Writing
Gatling How-To: Installation and Execution on OS X
This is here for my own reference, but may help others. I’m a software craftsman on a Mac, and I use Homebrew whenever possible. So, the info here relates to that. Prerequisite: Java must be installed (i.e. brew cask install java). Install Scala via Homebrew: brew install scala Optionally: Install Scala plugin in IntelliJ Download from https://gatling.io/download/…
Install sqlcmd on Mac OS X
In case you need to run SQL Server scripts from your Mac, do the following to install (NOTE: I use HomeBrew.): From the terminal, type: brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release ACCEPT_EULA=y brew install –no-sandbox msodbcsql mssql-tools You should see something like in the screenshot. Type “YES” if prompted and be on your way. Once done, type:…
Selenium: How to assert a WebElement that doesn’t exist
Just in case you need to assert that a WebElement doesn’t exist, here’s a code snippet that you can use. Java public int isElementPresent(String xpath) { return driver.findElements(By.xpath(xpath)).size(); } Cucumber @Then("^I expect to see the link On the page$") public void iExpectToSeeTheLinkOnThePage() { assertTrue(demoPage.isElementPresent() > 1); }
Clean Code Book Summary
This is a summary of Robert C. Martin’s Clean Code book. Once that contains a lot of gems that will make a coder efficient and with more sleep. Disclaimer: The below is not something I wrote; it was copied from here. I’m just adding it on my blog for personal reference. Thanks goes out to wojteklu…
IntelliJ Tips and Trics
This is just a dump of tip & tricks I found for IntelliJ, and will be a forever WIP. Find commented out code Find in path -> check Regex -> ^//
DNS Benchmark: Identify fastest DNS servers
If you’ve been a techie for a long time, you’ll know who Steve Gibson from GRC is. His tools are mostly built in Assembly, so it’s rocket-fast. (One thing to note is they’re only for Windows.) For this post, I’d like to share the tool I use to identify which DNS servers I should use, as…