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 9096777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:56:23+00:00 2026-06-16T23:56:23+00:00

Is i possible to run java exported tests from selenium ide on selenium-server.jar trough

  • 0

Is i possible to run java exported tests from selenium ide on selenium-server.jar trough command line/terminal?

So far I have used this command:

java -jar lib/selenium-server-standalone-2.28.0.jar -htmlsuite *firefox http://localhost:4444/wd/hub src/NewTest.java NewTest-result.html

It works ok until the firefox is lanuched and I see the code of this test in firefox but it doesn’t show that it has run the test at all. It says 0 test run, 0 tests failed, 0 tests successful.

Is it my command wrong or selenium server is not supposed to be used this way?

I even tried to use the html version of NewTest instead of java but same result.

  • 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-16T23:56:24+00:00Added an answer on June 16, 2026 at 11:56 pm

    The converted tests are JUnit tests. So you should have two processes:

    Your selenium server process:

    java -jar lib/selenium-server-standalone-2.28.0.jar
    

    Your JUnit test runner

    java -cp /usr/share/java/junit.jar org.junit.runner.JUnitCore [test class name]
    

    If you have several test classes, it might be better to create a TestSuite with the Suite annotation:

    @RunWith(Suite.class)
    @SuiteClasses({
       MyTestClass1.class,
       MyTestClass2.class})
    public class TestSuite {
       ...
    

    If you are using Spring, you can setup config containing selenium server address, browser, …

    @RunWith(SpringJUnit4ClassRunner.class)
    @ContextConfiguration(locations = { "classpath:my/package/seleniumConfig.xml"})
    public abstract class SeleniumTestSuite {
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to run JUnit tests from inside my Java application? Are there
is it possible to run an executable jar file (command line based) in android?
Possible Duplicate: run shell command from java I want to export some variable so
Possible Duplicate: run shell command from java I'm trying to run a process with
I have one question. Is it possible to run unix command directly from java
Is it possible to run a java jar file from within an Oracle (10g)
Is it possible to run average java app server on e.g. jboss or glassfish
Is it possible to run Apache Pig jobs from within a Java application, without
Is it possible to run java -javaagent:myagent.jar some.package.Main without having agent packaged to a
Is it possible to run a command (.cmd file) from Ant? Would I need

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.