Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Running a Xebium test without Maven #130

Open
wschreck opened this issue Jun 24, 2014 · 10 comments
Open

Running a Xebium test without Maven #130

wschreck opened this issue Jun 24, 2014 · 10 comments
Labels

Comments

@wschreck
Copy link

How is done? On Linux? On Windows?

@wschreck
Copy link
Author

And naturally not from within eclipse

@wschreck
Copy link
Author

All I get is:
Exception in thread "main" java.lang.ClassNotFoundException: fitnesse.wiidgets.MavenClasspathSymbolType
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at fitnesse.ComponentFactory.loadSymbolTypes(ComponentFactory.ja
at fitnesseMain.FitNesseMain.loadContext(FitNesseMain.java:131)
at fitnesseMain.FitNesseMain.launchFitNesse(FitNesseMain.java:37
at fitnesseMain.FitNesseMain.main(FitNesseMain.java:28)

@jguglielmi
Copy link

Good luck without Maven? The project is Maven based. You can use Ant and Ivy or some other type of project, but you need some compiler. That stack trace appears because the FitNesse variant is reliant upon Maven. It's in regards to the plugin used to add all of the pom dependencies to your classpath. You might want to maybe consider jarring Xebium with its dependencies then using it in your project to your liking if that's the way you're going? Your question is kind of broadly based though.

https://github.com/amolenaar/fitnesse-maven-classpath

@amolenaar
Copy link
Member

Hi,

You can download xebium-0.11-jar-with-dependencies.jar and add that to your project (http://search.maven.org/#artifactdetails%7Ccom.xebia.incubator%7Cxebium%7C0.11%7Cjar). You'll have to define it in a page with the !path directive. We did not cook a jar-with-dependencies for the 0.12 release.

Pretty straightforward actually.

Are you using a different tool for dependency management maybe?

@wschreck
Copy link
Author

Thanks a lot, Arjan!!
I have another question: must firefox (or aquivalent) be installed on the ‘fitnesse’ machine for the tests to work?
If so, how does fitnesse/xebium find this browser?

Unmaßgeblich
Wolfgang Schrecker

„Value enters the world with life….“
Aus Thomas Nagel: Mind & Cosmos p.120

From: Arjan Molenaar [mailto:notifications@github.com]
Sent: Thursday, June 26, 2014 5:02 PM
To: xebia/Xebium
Cc: Schrecker, Wolfgang
Subject: Re: [Xebium] Running a Xebium test without Maven (#130)

Hi,

You can download xebium-0.11-jar-with-dependencies.jar and add that to your project (http://search.maven.org/#artifactdetails%7Ccom.xebia.incubator%7Cxebium%7C0.11%7Cjar). You'll have to define it in a page with the !path directive. We did not cook a jar-with-dependencies for the 0.12 release.

Pretty straightforward actually.

Are you using a different tool for dependency management maybe?

@wschreck
Copy link
Author

Let me put this as square and simple as I can, what I want to do:

On a linux machine runs fitnesse with some tests quite well. On this machine there is no JDK, no MAVEN, no FIREFOX, just JRE & fitnesse.
On this machine I want to deploy XEBIUM, so I can run those test as well.

All the xebium tests and my own run fine, when I start fitnesse from MAVEN.
How can I move this to above mentioned linux machine?

@raboof
Copy link
Contributor

raboof commented Jun 27, 2014

XEBIUM provides SELENIUM integration to FITNESSE. SELENIUM needs a BROWSER. So if your linux machine does not have a BROWSER, you cannot use SELENIUM, hence you cannot use XEBIUM.

You could, of course, use a headless browser like PhantomJS.

@mjvdende
Copy link
Contributor

you can use sauce labs or your own equivalent. So in that context you can use Xebium on a server without a browser installed.

@wschreck
Copy link
Author

Super! OK, so I need a browser, fine!
I installed a firefox.
How then does Xebium find & connect to this browser?

And thanks for the quick answers!!

Unmaßgeblich
Wolfgang Schrecker

„Value enters the world with life….“
Aus Thomas Nagel: Mind & Cosmos p.120

From: Arnout Engelen [mailto:notifications@github.com]
Sent: Friday, June 27, 2014 2:34 PM
To: xebia/Xebium
Cc: Schrecker, Wolfgang
Subject: Re: [Xebium] Running a Xebium test without Maven (#130)

XEBIUM provides SELENIUM integration to FITNESSE. SELENIUM needs a BROWSER. So if your linux machine does not have a BROWSER, you cannot use SELENIUM, hence you cannot use XEBIUM.

You could, of course, use a headless browser like PhantomJS.


Reply to this email directly or view it on GitHubhttps://github.com//issues/130#issuecomment-47338190.

Atos Worldline GmbH
Geschäftsführer: Wolf Kunisch
Aufsichtsratsvorsitzender: Christophe Duquenne
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417

  • * * * * * * * L E G A L D I S C L A I M E R * * * * * * * *
    This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail by error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and shall not be liable for any damages resulting from any virus transmitted.
  • * * * * * * * L E G A L D I S C L A I M E R * * * * * * * *

@raboof
Copy link
Contributor

raboof commented Jun 27, 2014

I'm not entirely sure, but I think it should simply pick it up when the firefox executable is on the PATH somewhere

@raboof raboof added the support label Jun 29, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants