Posts

Showing posts from May, 2016

Repost - Notes: Selenium 3, the Spec, and Onwards by Simon Stewart

Image
Notes: Selenium 3, the Spec, and Onwards by Simon Stewart Title: Selenium 3, the Spec, and Onwards
Speaker: Simon Stewart, Selenium Project Lead
Host: Applitools
Date: Wed. May 25, 2016 @ 1:00 PM EDT
Duration: 60 minutes

Summing up Simon's Webinar:
Selenium 3 (no release date given) will be a removal of all old Selenium RC code into a legacy library called "leg-RC".Selenium 4 will move closer to the new W3C WebDriver Protocol they have been pushing for.Selenium 5 will be the full W3C WebDriver.
Before that information was given at the end of the talk, Simon took a long walk down Memory Lane...


How Selenium Started
Jason Huggins ( @hugs ) at the consulting company, ThoughtWorks, was in Tech Support working on a new web application to track time and expenses. Jason would fix one bug only to have it appear in another browser. He saw Ward Cunningham FIT (Framework for Integrated Test). Jason took this idea and realized that all browsers handled HTML differently, but all browsers use…

Install Node.JS and npm behind a firewall / company proxy - Galen Framework

Image
Problem: Unable to install npm 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 edit the config settings for Node


The best way to install npm is to install node using the node.js installernpm is installed as part of node.The problem occurs when you clone the Node repository from Githubnpm uses a configuration file and it can be added to via the command line npm config set ...To get packages behind a proxynpm config set strict-ssl falsenpm config set registry "http://registry.npmjs.org/"npm config set proxy http://"username:password"@proxy:8080npm config set https-proxy http://proxy-server-address:8080 Update: Try changing to npm config set registry "https://registry.npmjs.org/"

Update:

You can skip the username password and just hardcode the proxy and registry URL so that npm wouldn’t have to look for…

Selenium 3.0 will be out soon!

Image
For anyone who is interested: http://lp.applitools.com/selenium3/
In 2016, the Selenium Project is working hard to (finally!) ship 3.0.

Join Simon Stewart on May 25, and discover:
What will this release containWhat impact will it have on your test runsHow can you preserve your existing investment in tests using the Selenium WebDriver APIs, and your even older RC testsLooking forward, when will the W3C spec be completeAnd what can we expect from Selenium 4
Speaker: Simon Stewart At ThoughtWorks, Simon invented WebDriver. At Google, he became the lead of the Selenium project and built the infrastructure required to run millions of browser-based tests every day. At Facebook, Simon advocated for a monorepo, setup the mobile end-to-end testing frameworks, and lead the Buck build tool team, all of which helped slash the time from code to release.

Maven run tests from commandline - CheatSheet

Image
PurposeCommandRun all tests mvn test Run using testng verifymvn verifyRun the allure reports mvn siteRun a single maven test within a class mvn -Dtest=TestObjects#ostiariusAddUserWithCancel testwhere "TestObjects" is the test class name and "ostiariusAddUserWithCancel" is the test method.Run all tests within a groupmvn test -Dgroups=slow testRun all tests within a classmvn -Dtest=com.amedia.qa.automation.testcases.testgoogle.TestGoogle testmvn clean test -Dtest=xxxxTestOnly runs all the test classes ending in PerformanceTest.mvn -Dtest=*PerformanceTest clean test To run test suite xml filemvn test -DsuiteXmlFile=src/test/resources/testsuite/test.xml
Further Reading: http://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html

Endless loading screen when open Allure report using Chrome / Internet explorer browser

Image
Problem:  Endless loading screen when open Allure report using Chrome / Internet explorer browser This means that report data failed to load. Possible solutions: When opening the report from the local file, either open it in Firefox or launch Chrome with the--allow-file-access-from-files flag. For other browsers, you need to enable cross-origin requests to local files.WindowsExit any running-instance of chrome.Find the shortcut you normally use to launch chrome.Create a copy of itRight click on the new shortcut, and select PropertiesAt the very end of the Target: text box, add a space and then the desired command line flags (--allow-file-access-from-files) Upload the report to the web server and open it from thereIf you get a 404 error from the remote server, check logs in order to verify that the report was built successfully.If your test framework is JUnit, check that you're using version 4. Allure is incompatible with version 3 of JUnit and that's why no data is gathered from…

Open Source Test Reporting Frameworks

Image
Inspired from the previous post on Test Automation Frameworks, Reporting frameworks play an important part in these frameworks. So here are some of the best open source reporting frameworks out there:

Extent ReportsSerenity (Formally Thucydides)RedwoodHQAllure There are other frameworks like TestNG/ReportNG but we are looking at more robust reporting frameworks with graphical outputs that fit into the CI/CD world. Happy Reporting!

Open Source Test Automation Frameworks

Image
Every-time I read Joe Colantonio's posts I learn something new and this time it was a newbie called Gauge.
If you don't know what it is here are the 6 opensource frameworks Joe talks about:

Serenity (Formally Thucydides)Robot FrameworkRedwoodHQSahiGalen FrameworkGaugeUpdate:  Two more to the list:
An old one Open2TestNew: Extensive Testing Further Reading: http://www.joecolantonio.com/2016/05/10/6-open-source-test-automation-frameworks-need-know/

Serenity Maven Cucumber - Only run specific scenarios

Image
Problem: While using the serenity cucumber framework with maven run only specific scenarios or feature files

Solution: To run only individual feature, run a specific tag say @wip

Work In Progress tag @wip

mvn verify -Dcucumber.options="--tags @wip"

mvn verify -Dcucumber.options="--tags @wip @debug2"

More -DCucumber.options here: http://cucumber.github.io/api/cucumber/jvm/javadoc/cucumber/api/CucumberOptions.html#tags--

You can also do this by creating test runner class for each .feature file:@RunWith(CucumberWithSerenity.class) @CucumberOptions(features = "src/test/resources/features/search/search_by_keyword.feature") public class SearchByKeyword { } Triggering this as any other test class, would execute only the SearchByKeyword.feature.

History of programming languages 1950 - 2016

Image