Sunday Mar 29, 2009

Selenium Test project based on Netbeans (for dummies)

Here is a simple Netbeans based Selenium Test project that will open Google, enter a keyword and search . You can download the entire netbeans project and then open the project from your Netbeans IDE and run it locally. Before running it, you need to satisfy the below pre-requisites: 

  • selenium-server.jar should be running (java -jar selenium-server.jar)
  • firefox should be installed in your machine

 

Monday Jan 21, 2008

Defining Model Based Testing

I will write down some of the definitions of a model based testing found while searching in google:

"Model-based testing, uses algorithms to determine all of the usage paths for an application, pares down that number for maximum coverage and minimal testing, and then generates various test cases to try the application against" .. [Original Article]

Sunday Jan 20, 2008

Model Based Testing of Web Applications

This blog might come in handy for Quality/Test Engineer who is new to Model Based Testing concepts. Please note that this is a living blog and i will update then and there i find good links about Model Based Testing esp. that of Web Applications

[1] IBM's Article on Model Based Testing (with a web based application example)

Tuesday Oct 30, 2007

Selenium: Coding Standards for Selenium Core Test Tool

Selenium Core project has some agreed upon standards for developing your test scripts. Below is as is from their Readme.txt file

 

   Coding standards for Selenium Core Javascript code
            --------------------------------------------------

  Here is a set of conventions agreed by the active Selenium Core
  developers at ThoughtWorks.  Please stick to these guidelines when
  working on the Selenium Core code-base.
  • Whitespace: we use spaces, NOT TABS.  Indent in 4-space increments.
  • Braces: we place open-braces on the same line as the associated keyword,  for example:
        if (command.isBreakpoint) {
            this.pause();
        } else {
            window.setTimeout(this.resume.bind(this), delay);
        }
  • Encapsulation: we prefer to encapsulate functions and variables inside objects, where possible.
  • Variable declarations: declare variables (using "var") ... even if they're "global".
  • Class definitions: we're shifting to "prototype.js" style for definition of classes, e.g.
        var MyClass = Class.create();
        Object.extend(MyClass.prototype, {
        
            initialize: function() {
                // ... constructor code ...
            },
        
            doStuff: function() {
                // ... method body ...
            }
        
        });
  • 'Private' functions/properties: we simulate "private" properties by  prepended the name with an underscore ("_"), e.g.
        _resumeAfterDelay : function() {
            // ...etc...
        },
  • Element addressing: use "$(id)" rather than "document.getElementById('id')".
  • Timeout functions: pass function objects to setTimeout(), rather thanstrings, e.g. window.setTimeout(this.resume.bind(this), delay);

Friday Oct 26, 2007

Building a flexible and extensible Test framework around Selenium

Here is a video from Google Test Automation Conference(GTAC) on building a flexible and extensible framework using Selenium Test Tool. Also the presentation slides can be found below

Friday Oct 12, 2007

Open Source Automated Test Tools in Java (only Load and Functional Testing)

Here is a list of some of the open source automated test tools written in java .

Thursday Aug 30, 2007

Quote of the day

"Undertake only those services that they can reasonably expect to complete with professional competence" -- as from QAI's CSTE material 

Sunday May 13, 2007

SilkTest: Resolving Table Not Found error (Fails to recogonise Window Identifiers while playing the script)

I had a problem while running my old silktest script. It used to work earlier but after i resinstalled my silktest this script doesnt work and it fails with the error "HTML Table not found"

The solution is to make the Table Level to 1.0 . Here is how you do it:
 Silktest >> Options >> Extensions >> Internet Explorer 6 >> Extension >> Table(Check enabled) >> set Level to 1.0 (move the slider)

About

I'm a Quality Engineer at Sun Microsystems. Here in this blog, you may find information about Software Testing, Portal Server, Virtualization, Web2.0 and Misc Technical topics. The views expressed here are personal and does not reflect that of my employer

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today