Skip to main content

Posts

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

Selenium Training Meet on 12th Dec

Guys, I have set up next Selenium Training Meet on 12th December. Following topics would be covered in Selenium Training Meet - Soft assertion in Test (continuing test execution of method even if one assert fails) Using csv file for test data Using Selenium Grid to scale selenium tests I have deferred android automation for next meet. Registration Form is open for sign ups

Selenium Training Video for Dec 2nd Session

We conducted 6th Selenium Training meet on December 2nd. There were about 400 registration and about 45 selenium enthusiasts participated in live training. Following topics were covered in training - Page Factory Pattern Data externalization using properties files Capture application screen shot  only  during test failure (TestNG + Selenium) Introduction to Maven and mavenizing your Selenium project Training video can be accessed from Selenium Training page. Selenium Maven Project  used during training is also available for download. A big thanks to anymeeting.com for providing great resources in conducting this meet.