Friday 3 January 2014

How to create runnable jar file for your Selenium project

   1.   Right click on your project in eclipse
   2.   Select Export
   3.   Select [Java -> Runnable Jar file]
   4.   Provide Export Location
   5.   Click finish

 Run generated .jar file from command prompt


Script will run on machine having Browser & Java.

How to open Selenium IDE in Firefox

Selenium IDE can be opened in two ways
1.       Go to [View -> Side bar -> Selenium IDE]

2.       Go to [Tools -> Selenium IDE]

What are the element locators available with Selenium which could be used to locate elements on web page

There are mainly 5 locators used with Selenium –
1.       html id
2.       html name
3.       XPath locator
4.       Css locators
5.       DOM
6.       LinkText
7.       PartialLinkText
8.       Tagname

9.       Classname

Thursday 2 January 2014

QTP / UFT : How to for broken links on a web application

You can use the Page Checkpoint which gives a count of valid/invalid links on a page.


What is Text output & its use in QTP

A Text Output values enables to capture or to output text strings displayed in an AUT during run time. For example, suppose that you want to store the text of any error message that appears after a specific step in the Web application you are testing. You can create a text output value while recording or editing your test.

To create a text output value while recording:
1.   Highlight or display the text string you want to use for an output value.
2.  Select Insert > Output Value > Text OutputValue. The pointer changes into a pointing hand.
3.  In your application, click the text string for which you want to specify a text output value. The Text Output Value Properties dialog box opens.

4.  QTP creates a column (using logical name of object) in Global DataTable to store output value.