Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7873771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:36:37+00:00 2026-06-03T02:36:37+00:00

I am Unit testing on the client side of a GWT+SmartGWT application. First I

  • 0

I am Unit testing on the client side of a GWT+SmartGWT application.

First I tested with GwtTestCase. Too long for unit testing a huge application. GwtTestSuite doesn’t help. It still takes too much time to execute. (more, it asked me to start a browser when it’s testing)

Then gwt-test-utils : Great framework. Sadly, my javassist version is 3.5 and need at least the 3.11. Javassist is used by gilead so I can’t touch this. So, no gwt-test-utils…

I saw Selenium. That’s just great. With htmlunit driver, it’s fast and useful. Simplest way to test a webapp. Problem here is SmartGWT generates it’s own IDs when it generates the web page. So I can’t get the TextItems and fill them since those IDs are constantly changing. I found that it could be solved by using setID() before the initialization of the widget. But that’s the ID of the scLocator and not an HTML ID. Selenium doesn’t want to work with scLocator.

=> Is there a simple way to accept scLocator with Selenium ?
(And when I say simple, it must be simple… I’m not a specialist in Java…)

Could someone help me to unit test the application ? It’s coded in Java, it’s huge and I have to cover ~70% of the code (25k lines of code)

Some more specs :
Maven is used to compile.
I’m not touching at the server side.
Tests must be faster than GwtTestCase and Suite :/

I hope my problem is clear, I’m not a native english so sorry for mistakes I may do 😡

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:36:38+00:00Added an answer on June 3, 2026 at 2:36 am

    < defaultUserExtensionsEnabled>true< /defaultUserExtensionsEnabled>
    < userExtensions>[path to user-extensions.js]< /userExtensions>

    There we go. I managed to make it work. (With the selenium-maven-plugin in the < configuration> tag)

    Thanks for your help though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm unit testing a demo application, which is a POP3 client. The POP3 client
I am unit testing an application on the iPhone, and I'm trying to develop
I'm looking into unit testing and TDD for a Cocoa desktop application and I'd
How can I mock a DataServiceQuery for unit testing purpose? Long Details follow: Imagine
I have Zend_Soap_Server. It should be tested. One issue - unit testing and development
Has anyone got any suggestions for unit testing a Managed Application Add-In for Office?
I'm still on that huge GWT+smartGWT+Selenium+Maven project. I just learned that there is no
Unit testing Abstract classes in Groovy I asked a question previous about unit testing
In unit testing, the setup method is used to create the objects needed for
I am new to unit testing, and would like to know how you would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.