Selenium

Selenium Integration Reference for AIQ

Last reviewed: October 2, 2026

Use this article as a high-level reference for maintaining Selenium-based assets that still interact with AIQ workflows.

What changed in this article

Validation workflow

  1. Confirm what Selenium asset is being integrated and who owns its maintenance.
  2. Validate browser/driver compatibility, framework dependencies, test data, and result handoff into AIQ.
  3. Document whether the Selenium asset will be maintained, migrated, or retired.

Review note: This article now avoids presenting Selenium as a blank standalone topic.


Last updated: October 2, 2026

If you have feedback on this topic, contact documentation@appvance.ai.

Features and Benefits of Selenium

AIQ integrates Selenium to provide the following features and benefits:


Last updated: June 02, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Repurposing Methodology and Architecture for AIQ Integrations

Appvance Repurposing Methodology applied to Selenium enables many types of testing:

Functional Testing in the Firefox Web Browser - Record test scripts using Selenium IDE, a plug-in to the Firefox browser. Play the test scripts in the Firefox browser.

Browser Compatibility Tests - Play recorded Selenium tests in Edge, Safari, Chrome, and other browsers. Play the tests on a grid of machines with multiple operating environments and multiple browser versions.

Functional Testing - Play recorded Selenium tests as smoke tests, regression tests, and integration tests.

Load and Performance Testing - Determine the Scalability Index of your application by observing the throughput of your application at increasing levels of concurrently running virtual users. Each virtual user operates a test use case with one or more Selenium tests.

Synthetic Test - Prove compliance with a Service Level Agreement (SLA) by periodically running a Selenium test script. AIQ sends notification emails when the Selenium script fails or encounters an error condition.

Stress Testing - Understand the behavior as your application comes under unexpected high load conditions.

In each of the above types of tests AIQ re-purposes a single Selenium test script. The AIQ architecture makes re-purposing possible.

AIQ operates Selenium tests as load and performance tests by running the tests in one or more TestNodes. The TestNode operates the test in a browser (such as Edge, Safari, Chrome) or using HTMLUnit. HTMLUnit is a commercial headless browser framework that provides a programmatic simulation of a Web browser. HTMLUnit uses Rhino, the Mozilla JavaScript engine, to run JavaScript and Ajax programs. This approach makes it easy to run hundreds to thousands of simulated users in a load and performance test. The alternative would be costly test runs that start a browser for each simulated user.

AIQ makes it easy to pivot from one type of testing to another. For example, functional testing is often the time to ensure the test scripts work as expected. With a click of a button in the Appvance Scenario Builder, a functional test becomes a load and performance test. While loading the application under test with several virtual users your test may uncover another functional issue. Pivoting back to functional testing is easy with AIQ.

Once you record a test, AIQ re-purposes the test to be a functional test, load test, and performance test.

Often AIQ users will follow this methodology:

a) Record a Selenium test in Selenium IDE using the Firefox browser. Save the test in the Selenese file format. Confirm the test runs by playing the test against the application in the Firefox browser.

b) Run the Selenium test in a TestNode in the Firefox browser. Create a AIQ TestScenario using the Appvance Scenario Builder. Identify one or more Selenium tests to run in a test use case in the Scenario Builder's Use Case tab. Use the Selenium RC test type and identify *firefox as the browser. AIQ sends the Selenium test to TestNode. The TestNode launches Firefox and plays the test. The TestNode records the time it takes for each step of the Selenium test to operate. AIQ plots a set of results charts to identify functional issues in the test and application.

c) Run the Selenium test in a TestNode in the HtmlUnit browser. Same operation but this time using the headless HtmlUnit browser.

d) Run the test as a Load and Performance test. Operates the Selenium test at several levels of load. Identifies the Scalability Index of the application. Surfaces performance bottlenecks and functional issues.

e) Run the test as a Synthetic test. Operates the Selenium test periodically to prove compliance with an SLA and to surface functional issues.


Last updated: October 25, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Test Workshop Tutorial

Please read the tutorial on Selenium testing in AIQ. The tutorial shows step-by-step instructions to accomplish functional testing, load and performance testing, and business service monitoring of Selenium tests in Appvance Enterprise.

Tutorial: Building Tests of Rich Internet Applications Using Ajax and Selenium

These additional resources are available:

DZone RefCard: Introduction To Selenium

Selenium Documentation Project

Test Workshop

This Test Workshop is for QA testers, software developers, and network and server managers needing visibility, tools, and methodology into all the demands of IT. This is a deep-technical Workshop to answer your issues:

SoapUI support was removed in release 5.2.0 of AIQ.


Last updated: July 25, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Data-Driven Test Development in AIQ

Use this article to plan AIQ tests that separate reusable scenario logic from controlled test data.

Validation workflow

  1. Identify which values belong in the scenario and which should come from controlled data sources.
  2. Choose the data source that matches the refresh, security, and ownership requirements.
  3. Run at least one positive, negative, and boundary row and confirm each row is visible in results.

Last updated: September 30, 2026

Legacy Selenium IDE Import Reference

  1. Download selenium IDE Firefox plug-in and install from Selenium IDE Download

    Restart Firefox. After Firefox reboots you will find the Selenium-IDE listed under the Firefox Tools menu.

  2. Open the IDE To run the Selenium-IDE, simply select it from the Firefox Tools menu. It opens as follows with an empty script-editing window and a menu for loading, or creating new test cases

  3. Click the record button to record the user’s browser actions.

    – Enter the address of the application under test (“http://www.appvance.com/” ) inside the Base URL textbox.

    – By default, the Record button is in the ON state. Remember to tune it ON if it is in an OFF state so

    – Open the application under test (https:// http://google.com ) in Firefox.

    – At the end, we would end the recording session by tuning the record button into the OFF state.

  4. Save a test script.

    Note:

    1. Export the Selenium IDE script as java / JUnit / Webdriver and save it as a .java file. Create a jar file of a web driver script using Eclipse. Users can make use of this jar file in Appvance IQ to run java tests as functional or performance tests.

    1. Create a Data-driven script in selenium IDE and save it as a selenium script. Users can make use of this script in IQ to do Data-driven testing.

    Replace actual values with data-enabled values in the selenium script.

    Using the above-saved selenium script creates a scenario in IQ.

    Add DPL to data enable script in IQ by clicking on Add Data source link under the Resources panel

    Now go to the test case and add this DPL to it.

    Save and play scenario.

    Refer to this video for more information: Selenium Webinar

  5. Create a Selenium RC scenario using the above script in Appvance Scenario Builder.

  6. Ensure there is Seleniumrc 2.53 bundle added under the resources panel

  7. While running a functional test give 100 percent logs to see them out in a controller window and 5-10 percent logs while running a performance test

  8. Play the above-created scenario

  9. Click the “Click here” link in the controller window, the report is opened in a new tab

  10. Download the Iteration summary report

Iteration summary report

NOTE: Currently, the Throughput and throughput percentile are not enabled in selenium RC (HTML) files.

For data driving in selenium IDE: Open the selenium script in IDE, under the value column for the 'type' command, replace the actual value with "the name of the column from the CSV sheet without any $ symbol or quotes", Use the same name in the data sheet with the list of entries.


Last updated: July 28, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Review Selenium Commands and Results in AIQ

The Alternative To HP QuickTest Professional(tm) (QTP)

Many testers, developers, and IT managers ask Appvance to compare HP QuickTest Professional (QTP) to AIQ with Selenium IDE. Appvance provides app performance test automation solutions for organizations needing to improve the reliability and reduce service interruptions in their Web applications, Rich Internet Applications (RIA, using Ajax, Flex, Flash,) Web services and Business Process Management services. Appvance is the app performance expert for dozens of tools. This comparison document helps organizations look for an inexpensive solution that works with their latest applications. Here is a high-level summary:

Category

HP QTP 10

Appvance Enterprise 7.0.1 with Selenium 1.0

Technical experience required to be successful

Web 1.0 Record/Playback

Rich Internet Application (RIA, Using Ajax) Support

Drill down to root cause of functional issues/crashes

Record Tests

MS IE 9,10

Firefox 3.6 or later

Playback Tests

MS IE 9,10

MS IE 9,10 Firefox 3.6 or later, Safari, Chrome

Data-driven Testing

Reusable Test Components

Agile software development lifecycle (SDLC) support

Add-ons available

Language Support

VBScript

Selenese, Java, Ruby, Perl, PHP, Python, C#, Groovy

Functional Testing, Load Testing, Service Monitoring from one test script

Run tests in the Cloud, in your QA lab, or both

Selenium Command Language Reference (Selenese)

Selenium implements a domain-specific language (DSL) named Selenese.

Appvance implements the SeleniumHtmlUnit object library in AIQ to operate Selenese commands in HtmlUnit

Results Analysis and Reports for Root Cause Analysis and Mitigation

AIQ records the time it takes to operate each step in a Selenium test and the overall time to process the test use case (transaction.) AQI's Results Analysis Engine summarizes the transaction logs into a set of charts and reports.

Read Appvance Results Analysis

Scaling Selenium Tests in the Grid and Cloud

AIQ is a distributed test environment. AIQ runs Selenium tests on a Grid of your test equipment, in a Cloud Computing environment, or both. Read The Test Deployment Guide

Continuous Integration and Selenium

AIQ is an ideal environment for automating Selenium test operations from a Continuous Integration environment. The CI platform starts a TestScenario test and AIQ automatically provisions and deploys tests to the available TestNodes in your own Grid or in a Cloud Testing environment.Read The Test Deployment Guide

Selenium Command Reference

The following table summarizes the list of implemented and unimplemented Selenese commands in SeleniumHtmlUnit.

Command

Wait Command

Target

Value

Selenium Control

setTimeout

milliseconds

setMouseSpeed

number of pixels

setMouseSpeedAndWait

setSpeed

milliseconds

setSpeedAndWait

addLocationStrategy

strategyName

functionDef

addLocationStrategyandWait

allowNativeXpath

boolean

allowNativeXpathAndWait

ignoreAttributesWithoutValue

boolean

ignoreAttributesWithoutValueAndWait

assignId

locator

identifier

assignIdAndWait

captureEntirePageScreenShot

filename, kwargs

captureEntirePageScreenShotAndWait

echo

message

pause

milliseconds

runScript

javascript

runScriptAndWait

waitForCondition

javascript

milliseconds

waitForPageToLoad

milliseconds

waitForPopUp

windowID

milliseconds

fireEvent

locator

eventName

fireEventAndWait

Browser Operations

open

url

openAndWait

openWindow

url

windowID

openWindowAndWait

goBack

goBackAndWait

refresh

refreshAndWait

close

deleteCookie

name

path

deleteCookieandWait

deleteAllVisibleCookies

deleteAllVisibleCookiesAndWait

setBrowserLogLevel

logLevel

setBrowserLogLevelAndWait

Cookie Operations

createCookie

nameValuePair

optionString

createCookieAndWait

deleteCookie

name

optionString

deleteCookieAndWait

deleteAllVisibleCookies

deleteAllVisibleCookiesAndWait

Popup Box Operations

answerOnNextPrompt

answer

answerOnNextPromptAndWait

chooseCancelOnNextConfirmation

chooseCancelOnNextConfirmationAndWait

chooseOkOnNextConfirmation

chooseOkOnNextConfirmationAndWait

Checkbox & Radio Buttons

check

locator

checkAndWait

uncheck

locator

uncheckAndWait

Lists & Dropdowns

addSelection

locator

optionLocator

addSelectionAndWait

removeSelection

removeSelectionAndWait

locator

optionLocator

removeAllSelections

removeAllSelectionsAndWait

locator

Edit Fields

type

locator

value

typeAndWait

typeKeys

locator

value

typeKeysAndWait

setCursorPosition

locator

position

setCursorPositionAndWait

Keyboard Operations

keyDown

locator

keySequence

keyDownAndWait

keyPress

locator

keySequence

keyPressAndWait

keyUp

locator

keySequence

keyUpAndWait

altKeyDown

altKeyDownAndWait

altKeyUp

altKeyUpAndWait

controlKeyDown

controlKeyDownAndWait

controlKeyUp

controlKeyUpAndWait

metaKeyDown

metaKeyDownAndWait

metaKeyUp

metaKeyUpAndWait

shiftKeyDown

shiftKeyDownAndWait

shiftKeyUp

shiftKeyUpAndWait

Mouse Operations

click

locator

clickAndWait

clickAt

locator

coordString

clickAtAndWait

doubleClick

locator

doubleClickAndWait

doubleClickAt

locator

coordString

doubleClickAtAndWait

contextMenu

locator

contextMenuAndWait

contextMenuAt

locator

coordString

contextMenuAtAndWait

mouseDown

locator

mouseDownAndWait

mouseDownA

locator

coordString

mouseDownAtAndWait

mouseMove

locator

mouseMoveAndWait

mouseMoveAt

locator

coordString

mouseMoveAtAndWait

mouseOut

locator

mouseOutAndWait

mouseOver

locator

coordString

mouseOverAndWait

mouseUp

locator

mouseUpAndWait

mouseUpAt

locator

coordString

mouseUpAtAndWait

dragAndDrop

locator

movementString

dragAndDropAndWait

dragAndDropToObject

sourceLocator

destLocator

dragAndDropToObjectAndWait

Form Operations

submit

formLocator

submitAndWait

Windows/Element Selection

select

locator

optionLocator

select AndWait

selectFrame

locator

selectWindow

windowID

focus

locator

focusAndWait

highlight

locator

highlightAndWait

windowFocus

windowFocus AndWait

windowMaximize

windowMaximizeAndWait

Selenium Accessors

store

expression

variableName

storeAlert

variableName

assertAlert

pattern

assertNotAlert

pattern

verifyAlert

pattern

verifyNotAlert

pattern

waitForAlert

pattern

waitForNotAlert

pattern

storeAlertPresent

variableName

assertAlertPresent

pattern

assertNotAlert Present

pattern

verifyAlertPresent

pattern

verifyNotAlertPresent

pattern

waitForAlertPresent

pattern

waitForNotAlertPresent

pattern

storeAllButtons

variableName

assertAllButtons

pattern

assertNotAllButtons

pattern

verifyAllButtons

pattern

verifyNotAllButtons

pattern

waitForAllButtons

pattern

waitForNotAllButtons

pattern

storeAllFields

variableName

assertAllFields

pattern

assertNotAllFields

pattern

verifyAllFields

pattern

verifyNotAllFields

pattern

waitForAllFields

pattern

waitForNotAllFields

pattern

storeAllLinks

variableName

assertAllLinks

pattern

assertNotAllLinks

pattern

verifyAllLinks

pattern

verifyNotAllLinks

pattern

waitForAllLinks

pattern

waitForNotAllLinks

pattern

storeAllWindowIds

variableName

assertAllWindowIds

pattern

assertNotAllWindowIds

pattern

verifyAllWindowIds

pattern

verifyNotAllWindowIds

pattern

waitForAllWindowIds

pattern

waitForNotAllWindowIds

pattern

storeAllWindowNames

variableName

assertAllWindowNames

pattern

assertNotAllWindowNames

pattern

verifyAllWindowNames

pattern

verifyNotAllWindowNames

pattern

waitForAllWindowNames

pattern

waitForNotAllWindowNames

pattern

storeAllWindowTitles

variableName

assertAllWindowTitles

pattern

assertNotAllWindowTitles

pattern

verifyAllWindowTitles

pattern

verifyNotAllWindowTitles

pattern

waitForAllWindowTitles

pattern

waitForNotAllWindowTitles

pattern

storeAttribute

attributeLocator

variableName

assertAttribute

attributeLocator

pattern

assertNotAttribute

attributeLocator

pattern

verifyAttribute

attributeLocator

pattern

verifyNotAttribute

attributeLocator

pattern

waitForAttribute

attributeLocator

pattern

waitForNotAttribute

attributeLocator

pattern

storeAttributeFromAllWindows

attributeName

variableName

assertAttributeFromAllWindows

attributeName

pattern

assertNotAttributeFromAllWindows

attributeName

pattern

verifyAttributeFromAllWindows

attributeName

pattern

verifyNotAttributeFromAllWindows

attributeName

pattern

waitForAttributeFromAllWindows

attributeName

pattern

waitForNotAttributeFromAllWindows

attributeName

pattern

storeBodyText

variableName

assertBodyText

pattern

assertNotBodyText

pattern

verifyBodyText

pattern

verifyNotBodyText

pattern

waitForBodyText

pattern

waitForNotBodyText

pattern

storeChecked

variableName

assertChecked

pattern

assertNotChecked

pattern

verifyChecked

pattern

verifyNotChecked

pattern

waitForChecked

pattern

Unimplemented Selenese Commands

SeleniumHTMLUnit is an AIQ object library that translates Selenese commands on-to-fly and runs the commands using the HTMLUnit headless browser. Some Selenese commands do not make sense in an AIQ context. For example, AIQ provides cookie management commands of its own. The following is a list of Selenese commands not implemented in SeleniumHTMLUnit. AIQ throws a Not Implemented exception when encountering one of the following commands:

NotImplemented commands

altKeyDown

getAlert

getTable

mouseMoveAt

altKeyUp

getAllButtons

getWhetherThisFrameMatchFrameExpression

mouseUpAt

answerOnNextPrompt

getAllFields

getWhetherThisWindowMatchWindowExpression

openWindow

captureScreenshot

getAllLinks

getWhetherThisWindowMatchWindowExpression

refresh

chooseCancelOnNextConfirmation

getAllWindowIds

getXpathCount

setBrowserLogLevel

chooseOkOnNextConfirmation

getAllWindowNames

highlight

setContext

clickAt

getAllWindowTitles

isAlertPresent

setCursorPosition

close

getAttributeFromAllWindows

isConfirmationPresent

setMouseSpeed

controlKeyDown

getBodyText

isEditable

shiftKeyDown

controlKeyUp

getConfirmation

isOrdered

shiftKeyUp

controlKeyUp

getCookie

isPromptPresent

start

createCookie

getCursorPosition

keyDown

submit

deleteCookie

getElementHeight

keyPress

typeKeys

doubleClick

getElementIndex

keyUp

waitForFrameToLoad

doubleClickAt

getElementPositionLeft

metaKeyDown

waitForPopUp

dragAndDrop

getElementPositionTop

metaKeyUp

windowFocus

dragAndDropToObject

getElementWidth

mouseDownAt

windowMaximize

dragdrop

getExpression

mouseMove

fireEvent

getLocation

getMouseSpeed

getPrompt


Last updated: June 26, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Maintain TestNG Framework Scripts in AIQ

Once the selenium project is created, those scripts can be run in the AIQ platform as a functional or as a load/performance test.

A simple script was created for the demo purpose which launches the Firefox browser and it navigates to a webpage “http://www.google.com ”

  1. Add “tool.jar” file inside the project folder as seen in the above screenshot. This jar file is used to add the required steps in the scripts that in turn will be displayed in AQI's step times report (which will be discussed later)

  2. ‘Tool.jar’ file will be located at “\AIQ\TestNode\bundles\tool\1.0” Once added, Open pom.xml in your favorite editor and add the below dependency lines

  3. Open the project in your favorite IDE, either NetBeans or Eclipse

  4. In the above-mentioned script, notice a few lines being added that reads as

    UTPStepListener.startStep("Initializing FirefoxDriver");

    These are the step listeners which users need to add to the script; these step names will be displayed in AIQ Reports along with the time in milliseconds it took to execute these steps.

    Along with this user should add this import statement at the beginning of the script as seen in the above screen-shot to support these step listeners.

    “import com.appvance.enterprise.tool.UTPStepListener;”

  5. Once the AIQ step listeners have been added, we can compile (Clean and build from Net-beans) the project to create the jar file

  6. Right-click the project and click Clean and Build

  7. The jar file will be created in the default folder mentioned in Netbeans

  8. Navigate to the folder as displayed in the Netbeans output screen, and copy-paste the created jar file into the Selenium project

  9. Open the created jar file in 7-zip software to make sure it contains the class files created, if not add those class files into the jar file by dragging them into the 7-zip folder

    Class files will be created inside the project folder itself after compiling the same in Net-beans

    Class files will have the same name as that of the java file name except the extension would be .class.

  10. Make sure this class file is available in the jar file created, this is the only file that will be used in AIQ

  11. Launch AIQ and navigate to Scenario Builder for creating the Scenario

  12. Navigate to the Use-Case panel and select type as TestNG and select the jar file created from the project

  13. Provide the TestNG Class, this will follow the format “Package.classname”

    In our case, it would be ‘test.NewTest'

  14. Select the required percentage of logs and the correct database from the Options Panel

  15. Save the scenario and play

  16. As seen in the above Screenshot, the AIQ step listeners added in the script will be displayed as separate steps with step durations.

    The same information with more data can be seen in the Step times report

The same scenario can be converted to a Load test by using the test-type panel which is used to define the iterations and users and many others and run the load/performance tests.

Possible issues:

  1. If the script is dependent on Oracle drivers and if the below error message is seen.

    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    Either Login Failed or The Order link is not visible

    Solution: Please add a couple of jar files “classes12.jar” and “ojdbc14.jar” under resources in Scenario Builder.

    Path of the jar files: \UTPv2.0 \TestNode\bundles\oracle\10.2.0.5

  2. Is Firefox not launching and getting some time-out issue? Make sure all the Firefox processes are killed from all different users and re-run the test

  3. Please make sure to add the dependency in pom.xml and add ‘tool.jar’ to see the AIQ Step listeners in the AIQ controller

Working with Selenium scripts (Java) in Appvance PerformanceCloud.

  1. A new java class can be created

  2. Selenium bundle will be added in Appvance Scenario Builder upon selecting Java / TestNG test type in the test case panel

  3. All the required jar files can be moved to a new folder called lib in the project

  4. All the required jar files are to be added as resources in Scenario Builder

About AIQ Step listeners

Few modifications need to be done for the project before using the script in IQ to see the steps which we call Step listeners.

Add “tool.jar” file inside the project folder. This jar file is used to add the required steps in the scripts that in turn will be displayed in IQ’s step time report. ‘Tool.jar’ file will be located at “\AIQ\TestNode\bundles\tool\1.0”

Open the project in your favorite IDE, either Net-beans or Eclipse.

In the project few lines can be added where required which reads as UTPStepListener.startStep("Initializing FirefoxDriver"); These are the step listeners that users need to add in the script; these step names will be displayed in AIQ Reports along with the time in milliseconds it took to execute these steps.

Along with this user should add this import statement at the beginning of the script to support these step listeners.

“import com.appvance.enterprise.tool.UTPStepListener;” Once the AIQ step listeners have been added, we can re-compile (Clean and build from Netbeans) the project to create the jar file or use the above process mentioned for Eclipse.

Building jar in Eclipse:

  1. Right-click the project > Click Export

  2. Under Java, select the JAR file as the option > Click Next Select ‘Export generated class files and resources and provide the destination path and in the Jar file and click next.

    Note: Make sure all the previous jar files are deleted (if created any earlier) from the destination folder

  3. Click Next

  4. Click Finish

  5. A new jar file will be created with this which will be used as a resource in Appvance Scenario Editor

  6. Creating Scenario in Scenario Builder:

    • Open Scenario Builder from the Start screen.

    • Navigate to the TestCase panel and select Java from the test-type drop-down.

    • Select the generated jar file that was created from Eclipse or Net-beans.

    • Provide the class and the method name. In our case, we can provide the class and method name as “appvance.test.CallB2B” and “doTest” respectively.

    • Navigate to the Resource panel and Click Add Bundle and add httpclient “4.3.4” as a bundle, then add seleniumrc 2.43 bundle.

    • Click Add resources and add all the required jar files which were moved to the lib directory earlier.

    • Save the Scenario and run the test as a functional test to see the results in the Test Controller, AIQ Step listeners added will be shown in the reports.

    • The same scenario can be converted to a Performance/load test from a test-type panel.


Last updated: June 26, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Selenium Integration FAQ for AIQ

Appvance, the commercial application performance management, and load test solution company, participate in the Selenium project. Many times Appvance's response to 5a customer issue is in the form of an improvement to Selenium itself. The following questions and answers originally appeared in DZone.

What exactly is Selenium?

Selenium is a combination of tools and a domain-specific language (DSL) to build and operate functional, smoke tests, and integration tests of Web applications, including Rich Internet Applications (RIA, using Ajax.) Selenium provides a record/playback tool that plugs into the Firefox browser. The recordings use the Selenese DSL to express the steps of a test. Selenium plays back the test steps in the browser using a Javascript-based Browserbot daemon. Selenium Remote Control (RC) runs the test in Edge, Firefox, Safari, Chrome, and other browsers. Selenium Grid makes it easy to run these tests in a grid of test machines.

How long has the project been around? And how long have you been using it?

Selenium had its start at ThoughtWorks, a system integrator and global consulting firm. The core developers released Selenium into an open-source distribution in 2006. Appvance began using Selenium in 2007. Appvance was looking for a way to repurpose Selenium tests as load and performance tests, and business service monitors when Olivier Dony and Dominique de Waleffe contributed an Appvance Enterprise package to run Selenium tests using the HtmlUnit headless high-performance browser. Appvance enhanced this work to make the Selenium tests data-driven, to provide root cause analysis and results in analysis functions, to provide compatibility to test Ajax applications, and to run these tests in a Cloud testing Environment. This has been hugely beneficial to organizations needing to reduce costs and take advantage of Selenium's easy-of-test-authoring features.

What are the basic steps involved in getting set up with Selenium? (jars/server setup etc)

Setup to record and playback tests of Web browser-based applications using Selenium take about 5 minutes. The Selenium IDE plugs into Firefox as a standard add-on using XPI installation techniques. To playback, the tests in Edge, Safari, Chrome, and other browsers require the installation and configuration of Selenium RC. Selenium RC uses a daemon architecture. Start the daemon using a simple command-line call to start Java and run the Selenium RC JAR package. Selenium RC installations take an hour or less. Selenium Grid installs Selenium RC services on a farm of servers.

What language is used to write the tests?

Selenium implements a domain-specific language (DSL) for testing Web applications. For example, the DSL implements a command to click a button, type characters into a text field, and wait until text appears on the page. Selenium implements the DSL as a class library in Java, package in Python, Ruby, Groovy, C#, Perl, and PHP. The DSL has approximately 200 commands. Appvance teaches a 3-day introductory class in Selenium. It takes 2-3 days for most students to become proficient in the Selenium DSL.

How well does the record/playback function work?

Selenium IDE is designed for Web 1.0 applications. In Web 1.0 environments Selenium's record/playback function works very well. For Rich Internet Applications that use Ajax techniques and widgets, not so much! Ajax is the Wild West of software development. Everything goes, there is no sheriff, and no standards body exists. Consequently, Selenium does not know how to handle asynchronous applications where objects load at their own pace and there is no "wait until idle" function. Selenium misses Javascript-driven clicks, Javascript-created frames, and pop-up windows. Each miss means the test author needs to manually add Selenium DSL commands.

Selenium IDE record/playback does not work well for tests that require looping and conditional branching. These are possible by manually coding Selenium DSL commands in a Java or other scripting language environment. The solution is to use Selenium IDE's record feature to create simple test use cases, transform them into a Java class, and treat each use case as a component incorporated into a test suite. There are emerging frameworks to help implement a component approach to Selenium test authoring.

Is there a coverage tool that plugs into Selenium?

ThoughtWorks Twist is a tool to facilitate a continuous test and integration methodology built on Selenium tests in a team-oriented development environment. There may be others. There is a lot of excitement and energy in the Selenium space so Appvance wouldn't be surprised to find coverage tools.

Are there any missing features in Selenium? Is there a new release due soon?

A key drawback is Selenium's requirement to playback tests in a real browser. When the browser needs to interact with a user the Selenium test stops running. For example, when a browser moves from an HTTPS secured page to an HTTP page many browser's security policy kicks in and the browser asks the user to confirm the action. The Selenium project is working on a next-generation technology called WebDriver. WebDriver uses each browser's native API to operate the test commands.

Selenium lacks a data production library system to provide operational test data, lacks a way to repurpose tests into load tests, lacks a platform to manage Selenium tests as test assets, and lacks a way to derive the root cause of functional and performance issues. Thankfully these are provided by many side projects in the Selenium biosphere, including Appvance, BrowserMob, SauceLabs, and others.

The words "coming soon" and Selenium is mutually exclusive. It took the Selenium project 18 months to move from "beta" to "release candidate." Appvance is optimistic but not hopeful that Selenium 2.0 with WebDriver technology will appear in 2010.


Last updated: October 25, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai