672329 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

News News News Messages: 4 Messages: 4 Messages: 4 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Selenium Inspector - simplify automated testing of Web apps

Posted by: Igor Shvydkoy on July 24, 2009 DIGG
TeamDev announces the release of Selenium Inspector, an open source library for simplifying automated testing for Web applications. Selenium Inspector is built on top of the popular Selenium testing framework, and enhances its abilities for component-oriented testing, and simplifies testing of any HTML-based applications as well.

Selenium Inspector API allows to create testing solutions for variety of HTML rendering frameworks like JSF component libraries, Spring MVC, Struts, etc. Now web developers can create object-oriented testing APIs for any Web UI library. The Java API for inspecting OpenFaces components is already included.

With Selenium Inspector you'll get the following:
  • Ability to check actual view of an element style instead of what is declared in CSS but may not be actually applied.

  • Specialized higher-level Java API which simplifies inspection not just on primitive elements, but on compound HTML tags, such as ‹table›,‹ul›, etc.

  • A wide set of assertion methods for checking actual values of attributes and styles of HTML elements as well as evaluating actual results of client side expressions.

  • Selenium Inspector is easy to customize and extend.

  • And its free!

Learn more in the product documentation and the product site.

If you want to share your feedback, thoughts and ideas, or just need an advice, want to submit a feature request or a bug, you are welcome to contribute and participate!

Threaded replies

·  Selenium Inspector - simplify automated testing of Web apps by Igor Shvydkoy on Fri Jul 24 09:47:30 EDT 2009
  ·  Error when running sample code by Vineet Manohar on Fri Jul 24 15:00:04 EDT 2009
    ·  Re: Error when running sample code by Natalia Zolochevska on Mon Jul 27 11:49:32 EDT 2009
  ·  Comparison of Selenese, Selenium Inspector and Selenium API by Vineet Manohar on Wed Jul 29 15:24:41 EDT 2009
  ·  Maven Repository by Andre Rodrigues on Mon Sep 14 14:07:34 EDT 2009
  Message #312441 Post reply Post reply Post reply Go to top Go to top Go to top

Error when running sample code

Posted by: Vineet Manohar on July 24, 2009 in response to Message #312347
I get the following error when I tried running the sample code. Do I need setup selenium server explicitly?

java.lang.RuntimeException: Can't obtain selenium. SeleniumFactory isn't specified.
at org.seleniuminspector.SeleniumHolder.getSelenium(SeleniumHolder.java:37)
at org.seleniuminspector.junit4ex.StopBrowserRun.evaluate(StopBrowserRun.java:33)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:44)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)


  Message #312523 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Error when running sample code

Posted by: Natalia Zolochevska on July 27, 2009 in response to Message #312441
You have to configure Selenium Factory in order to run tests. Selenium server host, port, browser path, and browser url should be specified at least.
Selenium Insector provides SeleniumWithServerAutostartFactory that allows to start selenium server in lazy mode.
Please visit updated Developers Guide for more details.

  Message #312957 Post reply Post reply Post reply Go to top Go to top Go to top

Comparison of Selenese, Selenium Inspector and Selenium API

Posted by: Vineet Manohar on July 29, 2009 in response to Message #312347
To try the new Selenium Inspector API, I wrote the same program in 3 different ways. Selenium Inspector was easy to use and the nice thing is that you can still use the selenium api along side with the Inspector objects.
http://www.vineetmanohar.com/2009/07/29/first-look-at-selenium-inspector/

  Message #321815 Post reply Post reply Post reply Go to top Go to top Go to top

Maven Repository

Posted by: Andre Rodrigues on September 14, 2009 in response to Message #312347
Is Selenium Inspector available in a maven (maven 2) repository? It would be really helpful if it was.
It looks like a great tool and I'm considering using it in our projects here.

New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com

Dependency Injection in Java EE 6 - Part 2

Reza Rahman continues to explore the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (January 21, Article)

Ted Neward Q&A: What you must know about JavaScript, Scala and more

Ted Neward is an independent consultant specializing in high-scale enterprise systems, and an authority in Java and .NET technologies. He is the author and co-author of several books, including Effective Enterprise Java. At TheServerSide Java Symposium in March, he will be presenting sessions on pragmatic architecture, ECMAScript and Scala. (January 15, Article)

Developers split on open sourcing Java

Now that Oracle is absorbing Sun Microsystems, there mixed views on what should come of the Java Community Process (JCP). While some say Oracle should become the new steward of Java and keep the JCP much as it was, others argue that it may be time to open-source this widespread language. (November 24, Article)

Dependency Injection in Java EE 6 - Part 1

Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (November 2, Article)

SAML: It's Not just for Web services

SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. (September 28, Article)

Programming is Also Teaching Your Team

Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team. (September 22, Article)

Can Java EE Deliver The Asynchronous Web?

Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies. (July 14, Article)

JSF Flex

JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags. (June 29, Article)

The Rules of SOA - A Road to a Successful SOA Implementation

In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project. (June 23, Tech Talk)

Ari Zilka Talks About Terracotta 3.1

Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now. (June 15, Tech Talk)

Enterprise Application Integration, and Spring

In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements. (June 15, Tech Talk)

Google Web Toolkit: An Introduction

In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls. (June 4, Tech Talk)

Just Enough Early Architecture to Guide Development

Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable. (May 28, Tech Talk)

Productive Programmer: On the Lam from the Furniture Police

This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work. (May 26, Tech Talk)

Auto-Scaling Your Existing Web Application

Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers. (May 21, Tech Talk)

Automating Hibernate Mapping and Queries For Java Web Development

Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application. (May 19, Article)

Free Book PDF Download: Mastering EJB Third Edition

Mastering EJB was one of the original and most influential EJB books in the industry. Mastering EJB III now returns with two new expert co-authors, updated for EJB 2.1 and 30% new chapters including security, integration, best practices, open source, and more.
(Book PDF Download)

Application Server Matrix

The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map