Skip to main content

Posts

Selenium Training Project Files

As you know my selenium and other training programs are free and so the project files. All projects are available on Testing Forum . Please register on Testing Forum using a valid email address (no work email please). I promise the only email you would ever receive from me would be about new training tutorials. May I ask you a favor in return before you get access to selenium projects? Notice that you don't have to do any of the following if you do not want to, just read along :) Please share following on your Facebook and LinkedIn profiles  - Free Selenium Training   Selenium Java Tutorials JMeter Performance Testing Videos I hope I am not asking for too much. More testimonial and social circles help me drive more users to free training programs and keep the trainings free. Once you complete these steps then drop me a mail at tkumarb at gmail.com and I would give you access to selenium projects. If it is too much to do then do drop me an e-ma...

Using different Firefox Profiles with Selenium Tests Framework

Selenium Tests Framework (STF)  create a new firefox profile every time. To use custom profile, create STF default profile, put it in your project's resource folder (*/resources/profiles/customProfileDirCUSTFF). STF will use this default profile if it's there Define the path of specified profile in testng.xml file, e.g. <parameter name="firefoxUserProfilePath" value="c:\PathToProfile"/>, STF will use it instead.

Set up driver in Selenium Tests Fraemwork

If you don't want to use driver object provided by Selenium Tests Framework or want to use a new driver then you can instruct Selenium Tests Framework to use your own version of driver. Set up your own driver object, i.e. -        AndroidDriver driver = new AndroidDriver(); Instruct STF to use your own version of driver, i.e. -        WebUIDriver.setWebDriver(driver); And you can continue to use all the features of Selenium Tests Framework like - step by step reporting, rerunning failed tests etc, it is just that you are using your own version of driver and not the one provided by Selenium Tests Framework :)

Selenium Tests Framework and Chrome browser

It's not necessary to put chromedriver.exe under resources folder of Selenium Tests Framework (STF) project. It will use the default chromedriver if it is not added. Though you can also add it explicitly. please put chromedriver.exe under resources folder of STF project If Chrome browser is stuck, please update chromedriver.exe to new version from   http://code.google.com/p/chromedriver/downloads/list

Parameters used in Selenium Tests Framework

Following parameters can be set up in testng.xml file to make most use of Selenium Tests Framework. These parameters are already set in Sample Test Project  - There are two listeners available with Selenium Tests Framework -  com.seleniumtests.reporter.SeleniumTestsReporter - controls the generation of step by step reporting  and com.seleniumtests.core.TestRetryListener - reruns the failed test If you don't wish to use any of these features then you can remove the listeners (you don't want to do that ;-)) appURL - Application URL against which tests is to be run browser - Browser on which application is to be tested, available options are *firefox, *chrome, *iexplore runMode - The mode in which tests are to be run either locally or on selenium grid. Corresponding configurations are - LOCAL or ExistingGrid webDriverGrid - The location of selenium grid, like - http://localhost:4444/wd/hub webSessionTimeOut - time out to be use...

Selenium Training video for 12th December Session

7h Selenium Training session was conducted on 12th December. There were more than 100 registration and about 40 selenium enthusiasts participated in live training. Following topics were covered in training - Soft assertion in Selenium Test (continuing test execution of method even if one assert fails) Data driven testing using csv files and analyzing test data in TestNG Report Using Selenium Grid to scale your selenium tests Training video is available on YouTube . Selenium Project  is available for download as well. Please post session related questions in forum