Friday, 18 February 2011

selenese converter

Hi friends,
            Did you hear about selenese converter (from html to java(junit))?, Few months back i got a chance to work liferay's selenium testing, in that they have already written a java file to convert many html files to java files at one shot. So using that idea i started working to create a converter for all websites.
(one more point i forgot to say with handling the dynamic id's in web page.)

Hope i will finish it soon and update the status in my blog.

Wednesday, 2 February 2011

What is maven?

Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.

Maven's Objectives
Maven's primary goal is to allow a developer to comprehend the complete state of a development effort in the shortest period of time. In order to attain this goal there are several areas of concern that Maven attempts to deal with:
  • Making the build process easy
  • Providing a uniform build system
  • Providing quality project information
  • Providing guidelines for best practices development
  • Allowing transparent migration to new features
For more details follow this link :http://maven.apache.org/guides/getting-started/index.html

Wednesday, 5 January 2011

Batch file creation to run the selenium server

Hi,
    I have tried to create a batch file to start the selenium server for three different environments, Almost it takes one whole week for me to create a batch file because i am new to this batch file creation.

So i would like to give the sample batch file code so that you can modify as per your requirements.

Sample batch file code:


ECHO OFF
SET JAVA_HOME="C:\Program Files\Java\jdk1.6.0_20"
SET ANT_HOME="C:\Program Files\ant"
SET PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%PATH%

echo Please Enter The environment
set /p Key= Here -^>

echo.

:BEGIN

IF %key% == tst GOTO TST
IF %KEY% == dev GOTO DEV
IF %key% == uat GOTO UAT

:TST
echo YOU HAVE ENTERED TST ENVIRONMENT
java -jar path to \selenium-server.jar -port 4440  -multiwindow -htmlSuite "*firefox " "website url" "path to\MainSuite.html" "path to\Results.html"
GOTO END
:DEV
ECHO YOU HAVE ENTERED DEV ENVIRONMENT
ava -jar path to \selenium-server.jar -port 4441  -multiwindow -htmlSuite "*firefox " "website url" "path to\MainSuite.html" "path to\Results.html"
GOTO END
:UAT
ECHO YOU HAVE ENTERED UAT ENVIRONMENT
ava -jar path to \selenium-server.jar -port 4442  -multiwindow -htmlSuite "*firefox " "website url" "path to\MainSuite.html" "path to\Results.html"
GOTO END
:END

Try this and do magic in your automation world

All the best