Systems | Development | Analytics | API | Testing

Is Selenium the Best Test Automation Framework?

As far as web test automation goes, Selenium is certainly the most popular toolset. That popularity is uncontested. A survey on test automation finding that 54% of the respondents were using Selenium might be surprising only in that the number is so low. Many of the alternatives to Selenium, Software-as-a-Service products that record and re-run entirely in the browser, still use the Selenium as the core driving technology.

Local Test Project Code - Selenium Java and JUnit4

This video review the sample code used in Sauce Labs' Web Automation Quickstart module for Selenium Java. See how to access the code sample on Github, and get an overview of the structure of the test suite, including the Maven pom.xml file. Understand the Page Object Model of the example test suite, and some of the abstraction and methods used. Learn about the file you will need to edit, BaseTest.java, that you will be editing to run this examples test on the Sauce Labs Cloud.

Setup to Run Web App Tests On Sauce Labs

In this video, you will learn how to set variables for your Selenium Java test suite in a config file, create a switch statement for running tests either locally or on the Sauce Labs Cloud, and add the setting such as the url you are testing against, and set up you test to send capabilities to Sauce Labs. In the next video, you will see how to add these capabilities and run your test. Connect with Sauce Labs on Social Media Twitter: @saucelabs.

Run a Web App Test on Sauce Labs - Selenium Java

Learn how to add capabilities in a Seleniujm Java test using MutableCapabilites to set options such as username and access key for the Sauce Labs platform, and also add the capabilities such as browserName, browserVersoin, and platformName to configure which environment your test runs in. You will also learn to instantiate a RemoteWebDriver on Sauce Labs using the endpoint for the data center you are testing in.

Adding a Test Name - Selenium Java

Learn to pass the test name for a Selenium Java test to the Sauce Labs cloud, using the JUnit4 TestWatcher class. Create a rule and implement TestWatcher, and at the start of a test, pass the test name to the name capability so your name will appear with your test results on the Automated Testing results page. Connect with Sauce Labs on Social Media Twitter: @saucelabs.