Tuesday, June 12, 2012

Selenium RC Server can be started with the mentioned options.



The procedure followed to run the Selenium RC Server is:

1. Open the command prompt.
2. Change the folder path to Selenium RC Server.
3. Issue the command "java -jar selenium-server.jar".
4. For more options on how to start selenium server.


Now in brief description:


-port the port number the selenium server should use (default 4444)
-timeout an integer number of seconds before we should give up
-interactive: puts you into interactive mode. See the tutorial for more details
-singleWindow: puts you into a mode where the test web site executes in a frame. This mode should only be selected if the applicationunder test does not use frames.
-profilesLocation: Specifies the directory that holds the profiles that java clients can use to start up selenium. Currently supported for Firefox only.
-forcedBrowserMode sets the browser mode to a single argument (e.g. "*iexplore") for all sessionsno matter what is passed to getNewBrowserSession
-forcedBrowserModeRestOfLine sets the browser mode to all the remaining tokens on the line (e.g. "*custom /some/random/place/iexplore.exe") for all sessions, no matter what is passed to getNewBrowserSession
-userExtensions indicates a JavaScript file that will be loaded into selenium
-browserSessionReuse: stops re-initialization and spawning of the browser between tests
-avoidProxy: By default, we proxy every browser request; set this flag to make the browser use our proxy only for URLs containing '/selenium-server'
-firefoxProfileTemplate <dir>: normally, we generate a fresh empty Firefox profile every time we launch. You can specify a directory to make us copy your profile directory instead.
-debug: puts you into debug mode, with more trace information and diagnostics on the console
-browserSideLog: enables logging on the browser side; logging messages will be transmitted to the server. This can affect performance.
-ensureCleanSession: If the browser does not have user profiles, make sure every new session has no artifacts from previous sessions. For example, enabling this option will cause all user cookies to be archived before launching IE, and restored after IE is closed.
-trustAllSSLCertificates: Forces the Selenium proxy to trust all SSL certificates. This doesn't work in browsers that don't use the Selenium proxy.
-log writes lots of debug information out to a log file
-htmlSuite Run a single HTML Selenese (Selenium Core) suite and then exit immediately, using the specified browser (e.g. "*firefox") on the specified URL (e.g. http://www.google.com"). You need to specify the absolute path to the HTML test suite as well as the path to the HTML results file we'll generate.
-proxyInjectionMode: puts you into proxy injection mode, a mode where the selenium server acts as a proxy server for all content going to the test application. Under this mode, multiple domains can be visited, and the following additional flags are supported:
-dontInjectRegex an optional regular expression that proxy injection mode can use to know when to bypss injection
-userJsInjection specifies a JavaScript file which will then be injected into all pages
-userContentTransformation a regular expression which is matched against all test HTML content; the second is a string which will replace matches. These flags can be used any number of times. A example of how this could be useful: if you add "-userContentTransformation https http" then all "https" strings in the HTML of the test application will be changed to be "http".

Thursday, February 16, 2012

Integrate Selenium tool in AutoIt.

Testing Tool - BlueDuck SDA

Description:
BlueDuck SDA is an Autoit Driver for Selenium. Combining automation for Win32 and Web in a single script. The perfect combination for developing automated cases, AutoIt and Selenium together. Features: -> Supports your web app no matter what it is developed in. -> Easy to learn BASIC-like syntax -> Interacts with all standard windows controls -> Integration with Testlink 1.9.1 -> DataProvider -> Object Repository -> and more...
Requirement:
Windows XP - Vista - Seven

Problem

Hi Guys,

I am having some problem regarding behavior driven development to desktop based application. If you have any framework for the BDD to desktop application then please send me the information ...

Thanks in advance :
Prashant Chauhan

Saturday, January 21, 2012

Selenium 2.0 or Selenium Web Driver

Selenium Web Driver Features:
The primary new feature is the integration of the WebDriver API. This addresses a number of limitations along with providing an alternative, and simpler, programming interface. The goal is to develop an object-oriented API that provides additional support for a larger number of browsers along with improved support for modern advanced web-app testing problems.
  • WebDriver API
  • Selenium Server not needed
  • WebDriver is the name of the key interface against which tests should be written, but there are several implementations.

The Selenium Server – When to Use It:

You may, or may not, need the Selenium Server, depending on how you intend to use Selenium. If you will be strictly using the WebDriver API you do not necessarily need the Selenium Server. Selenium-WebDriver makes direct calls to the browser using each browser’s native support for automation. How these direct calls are made, depends on the browser you are using. See the information for each browser implementation below.
Some reason why you will need the Selenium-Server:
  • You are using Selenium-Grid to distribute your tests over many machines / VMs.
  • You want to connect to a remote machine that has a particular browser version that is not on your current machine.
  • You are not using the Java bindings and would like to use HtmlUnit Driver 
Required Things:
  • FireFox advance version Ex. 9.0.1
  • Selenium IDE Ex. 1.5.0
  • Firebug Ex. 1.9.0
  • Some JAR files:
  1. selenium-server-standalone-2.15.0.jar
  2. selenium-java-2.15.0.jar
  • Eclipse IDE
  • JUnit 4 instead of JUnit 3
  • ANT and build.xml file  

Getting Started With Selenium-WebDriver:

WebDriver is a tool for automating web application testing, and in particular to verify that they work as expected. It aims to provide a friendly API that’s easy to explore and understand, easier to use than the Selenium-RC (1.0) API, which will help to make your tests easier to read and maintain. It’s not tied to any particular test framework, so it can be used equally well in a unit testing or from a plain old “main” method.

    Monday, January 9, 2012

    Monday, January 2, 2012


    Happy New Year 2012 With AutoIt Tool
    AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying “runtimes” required!
    AutoIt was initially designed for PC “roll out” situations to reliably automate and configure thousands of PCs. Over time it has become a powerful language that supports complex expressions, user functions, loops and everything else that veteran scripters would expect.
    Features:
    • Easy to learn BASIC-like syntax
    • Simulate keystrokes and mouse movements
    • Manipulate windows and processes
    • Interact with all standard windows controls
    • Scripts can be compiled into standalone executables
    • Create Graphical User Interfaces (GUIs)
    • COM support
    • Regular expressions
    • Directly call external DLL and Windows API functions
    • Scriptable RunAs functions
    • Detailed helpfile and large community-based support forums
    • Compatible with Windows 2000 / XP / 2003 / Vista / 2008 / Windows 7 / 2008 R2
    • Unicode and x64 support
    • Digitally signed for peace of mind
    • Works with Windows Vista’s User Account Control (UAC)
    AutoIt has been designed to be as small as possible and stand-alone with no external .dll files or registry entries required making it safe to use on Servers. Scripts can be compiled into stand-alone executables withAut2Exe.
    Also supplied is a combined COM and DLL version of AutoIt called AutoItX that allows you to add the unique features of AutoIt to your own favourite scripting or programming languages!
    Best of all, AutoIt continues to be FREE – but if you want to support the time, money and effort spent on the project and web hosting then you may donate using the link to your left in the menu.
    Take me to the downloads page!
    download autoit AutoIt

    Features

    Basic-like Syntax and Rich Function Set
    AutoIt has a BASIC-like syntax which means that most people who have ever written a script or used a high-level language should be able to pick it up easily.
    Although it started life as a simple automation tool, AutoIt now has functions and features that allow it to be used as a general purpose scripting language (with awesome automation as well of course!). Language features include:
    • The usual high-level elements for functions, loops and expression parsing
    • A staggering amount of string handling functions and a Perl compatible regular expression engine (using the PCRE library).
    • COM support
    • Call Win32 and third-party DLL APIs
    Built-in Editor with Syntax Highlighting
    AutoIt comes with a customised “lite” version of SciTe that makes editing scripts easy. Users can alsodownload a complete version of SciTe that includes additional tools to make things even easier.
    Standalone and Small
    AutoIt is a very small and standalone application with no reliance on massive runtimes like .NET or VB. All you need to run AutoIt scripts are the main AutoIt executable (AutoIt3.exe) and the script. Scripts can also be encoded into standalone executables with the built-in script compiler Aut2Exe.
    International and 64-bit Support
    AutoIt is fully Unicode aware and also includes x64 versions of all the main components! How many other free scripting languages can you say that about?
    Key and Mouse Simulation
    Much time has been spent optimizing the keystroke and mouse simulation functions to be as accurate as possible on all versions of Windows. All the mouse and keyboard routines are highly configurable both in terms of simulation “speed” and functionality.
    Window Management
    You can expect to move, hide, show, resize, activate, close and pretty much do what you want with windows. Windows can be referenced by title, text on the window, size, position, class and even internal Win32 API handles.
    Controls
    Directly get information on and interact with edit boxes, check boxes, list boxes, combos, buttons, status bars without the risk of keystrokes getting lost.  Even work with controls in windows that aren’t active!
    Graphical User Interfaces (GUIs)
    AutoIt v3 will also allow you to create some complex GUIs – just like those below!

    Sunday, January 1, 2012

    Happy New Year 2012 !!!


    Wish You A...Great, Prosperous, Blissful, Healthy, Bright, Delightful, Mind Blowing, Energetic, Terrific & Extremely !!!
    ...HAPPY NEW YEAR 2012...

    new year scraps, comments, cards, images for Orkut, Myspace, Facebook, friendster


    Thanks In Advance ...

    Wednesday, December 14, 2011

    Paths and URL, Testing Tool for desktop application

    Q. Difference between Absolute URL and Relative URL ?
    Ans. 

    * Absolute URL : It is base URL and this represents domain address, called Base URL also.
    * Relative URL : (Absolute URL + Page path)

    Q. Describe some desktop application testing tools ?
    Ans.

    There are few testing tools for desktop application,
    1. AutoIt
    2. AutoHotkey
    3. TestSmith
    4. QAliber
    5. pywingauto

    Thanks