Posts

Showing posts from July, 2016

WebDriverManager - Solution to the selenium binaries

Image
What is WebDriverManager ?

Problem:
In order to use some browsers (for example Chrome,Internet Explorer, Opera, Microsoft Edge, PhantomJS, or Marionette) you need to download a binary which allows WebDriver to handle the browser. In addition, the absolute path to this binary must be set as Java variables, as follows: System.setProperty("webdriver.chrome.driver", "/absolute/path/to/binary/chromedriver"); System.setProperty("webdriver.opera.driver", "/absolute/path/to/binary/operadriver"); System.setProperty("webdriver.ie.driver", "C:/absolute/path/to/binary/IEDriverServer.exe"); System.setProperty("webdriver.edge.driver", "C:/absolute/path/to/binary/MicrosoftWebDriver.exe"); System.setProperty("phantomjs.binary.path", "/absolute/path/to/binary/phantomjs"); System.setProperty("webdriver.gecko.driver", "/absolute/path/to/binary/geckodriver"); Solution
This piece of software…

Marionette ?

Image
Background:
Mozilla has been working on a project called Marionette which will become a future version of FirefoxDriver.Official link - https://developer.mozilla.org/en-US/docs/Mozilla/QA/MarionetteRead more here http://www.theautomatedtester.co.uk/blog/2012/marionette-the-future-of-firefoxdriver-in-selenium.html
Now called the GeckoDriverhttps://github.com/mozilla/geckodriverIf you want to perform UI tests with browser chrome or content, Marionette is the tool you're looking for!Using Marionette with Webdriver - https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver
Future: Marionette will be turned on by default from Selenium 3Ideally when Firefox 52 comes around you will just update to Selenium 3 Happy Testing!

slf4j failed to load class

Image
Problem: If you are getting this error message every time you run your slf4j failed to load class framework org.slf4j.impl.staticloggerbinder

Solution:

If you use maven just add the following













Happy Testing!

pip behind corporate firewall

Image
Problem: Unable to install virtualenv using pip behind the proxy
Solution: Similar to what we did when we installed git http://go-gaga-over-testing.blogspot.com.au/2015/04/setup-github-within-companys-firewall.html behind a company's firewall we shall set the proxy
pip install --proxy="myproxyname.mydomain.com:8080" virtualenv
Or 
pip install --proxy="http.proxy http[s]://userName:password(encoded)@proxyaddress:port" virtualenv
For more information and if this solution doesn't work for you :

Sources:
http://stackoverflow.com/questions/21468550/pip-not-working-behind-firewall
http://stackoverflow.com/questions/14149422/using-pip-behind-a-proxy

GitHub search results as a feed?

Image
Is there a way to search the git hub results so you can have a feed of recently updated repositories or users you follow etc?

The answer is yes

GitHub has an API for search https://developer.github.com/v3/search/

Example of how it works?

Let's say you want to search all test automation repositories written in Java.
Your query might look like this.
https://api.github.com/search/repositories?q=automation+language:java&sort=stars&order=desc
In the above example q is the search item automation and language is java and sort is based on stars and order is desc ParametersNameTypeDescriptionqstringThe search keywords, as well as any qualifiers.sortstringThe sort field. One of stars, forks, or updated. Default: results are sorted by best match.orderstringThe sort order if sort parameter is provided. One of asc or desc. Default:desc To check for more queries and search parameters read these:
https://help.github.com/articles/searching-repositories/
https://help.github.com/articles/sea…

Core SAFS Project for Test Automation Engines and Services

Image
Here is an interesting project on GitHub  that provides test automation support and services

What does SAFS provide?

Software Automation Framework Support
Core codes like: services, drivers, engines and hooks etc.drivers like:SAFSJSAFSSeleniumPlusKeyword implementation engines for different testing tools likeIBM Rational Functional TesterSelenium 1.0Selenium 2.0 WebDriveriOS UIAutomationAndroid RobotiumCode for Image-Based TestingRudimentary Optical Character Recognition (OCR)Cucumber integrationJava AWT Robot enhancementsProject Url/ Code: https://github.com/SAFSDEV/Core https://github.com/SAFSDEV Environment setup for automation: https://github.com/SAFSDEV/Core/blob/master/developer_setup.md
Support: http://safsdev.freeforums.net/

Watch / Notifications projects in JIRA

Image
Problem: How do I bulk watch issues on my JIRA project?

Scenario: You are a Test Manager with a program nearing release. You want to be notified when someone files a blocker or critical issue.

Solution: Create a filterAdd a subscription
You can create a filter in JIRA that matches the criteria you need.Save the filter with an appropriate name - https://confluence.atlassian.com/jira064/using-filters-720416526.htmlSome examples for JQL tips and tricks - https://www.alfresco.com/blogs/developer/2016/05/18/top-10-jql-tips-from-first-steps-to-seasoned-traveler/
Now click details link of the filterWe can then subscribe to that filter.\

Whenever a new issue matches that filter, JIRA will email you. You can set notifications to whatever period you want. For example, you can make sure the list of critical issues are in your inbox every morning. As new issues come in, you can decide if you want to watch them to follow all the issue traffic.
Bulk Watch



Repost - The code that took America to the moon was just published to GitHub, and it’s like a 1960s time capsule

Image
When programmers at the MIT Instrumentation Laboratory set out to develop the flight software for the Apollo 11 space program in the mid-1960s, the necessary technology did not exist. They had to invent it.
They came up with a new way to store computer programs, called “rope memory,” and created a special version of the assembly programming language. Assembly itself is obscure to many of today’s programmers—it’s very difficult to read, intended to be easily understood by computers, not humans. For the Apollo Guidance Computer (AGC), MIT programmers wrote thousands of lines of that esoteric code.
Here’s a very 1960s data visualization of just how much code they wrote—this is Margaret Hamilton, director of software engineering for the project, standing next to a stack of paper containing the software:





Margaret Hamilton(NASA)
The AGC code has been available to the public for quite a while–it was first uploaded by tech researcher Ron Burkey in 2003, after he’d transcribed it from scanned …

Interesting stats - Cloud Data Centers

Image

The weird reason I learnt about Docker: Video recording embedded in Selenium Grid reports

Image
From my earlier post "Docker + Compose + Selenium Grid = Automation awesomeness!" you would have seen that "video recording" was the reason that made me stumble upon Docker.

So what options do we have when we want to accomplish videos embedded in our html report when playing with Selenium Grid.

vnc2flvMonteavconv Here is a docker image that supports vnc recording: https://github.com/rnorth/vnc-recorder Another really good docker image with selenium grid sample tests: https://github.com/sskorol/docker-selenium-grid
The recording option used here is avconv: Which is a child of ffmpegthe only one that supports mp4 formatTherefore can be easily attached to a HTML5 webpage To read more there is an excellent blog poast from the github page: http://qa-automation-notes.blogspot.com.au/2016/04/docker-selenium-and-bit-of-allure-how.html

Other Docker images that support windows and Unix: https://github.com/ozzyjohnson/docker-ffmpeg-webm
Selenium in Docker with Chrome & Fire…