We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
Hi.
I have tried to upload a java selenium jar file to create a new monitor.
But I can't get it to work.
I have created a runnable jar file and tested it on a Linux server that don't have the selenium libraries installed.
And that worked.
The messages I get when I try to run start the monitor "on demand" are:
Test stopped due to error
Selenium script could not be started. Possible reasons:
I manage to run the jar file on a linux box without selenium installed. That should cover the first 2 points.
And I use chromedriver, because that was recommended in the docs.
So now I'm stuck with my problems. I'm not a java wizard, so it is most likely something that I have missed.
Do anyone have an idea on what could be wrong?
--
rloseth
Hi.
Thank you for all the replies.
I found my solution.
When creating the monitor I chose only one location (Copenhagen - Denmark). And when I tried to do a on demand run to get the monitor enabled, it always failed.
After a hole lot of clicking around I changed my location to Amsterdam, and that worked. I even tried to use my first jar upload and that worked too.
So the problem is solved.
There may be some strange things in the location system in AlertSite, but my problem is solved for now.
Once again, thanx for all the suggestions. :)
--
rloseth
Hi.
Thank you for all the replies.
I found my solution.
When creating the monitor I chose only one location (Copenhagen - Denmark). And when I tried to do a on demand run to get the monitor enabled, it always failed.
After a hole lot of clicking around I changed my location to Amsterdam, and that worked. I even tried to use my first jar upload and that worked too.
So the problem is solved.
There may be some strange things in the location system in AlertSite, but my problem is solved for now.
Once again, thanx for all the suggestions. :)
--
rloseth
Hello rloseth!
From your description it sounds like you might not have prepared the JAR file to run on the AlertSite locations.
You would need to add main() and some import definitions, and then export as a runnable JAR.
Please see the documentation here:
http://doc.alertsite.com/Default.htm#synthetic/monitors/selenium/selenium-monitoring.htm#jar
Thanks,
JKobert
Hi.
I have gone through the info and prepared the jar according to the documentation.
I have used the example in the documentation for the main() method and exported as runnable jar.
The jar runs like it should on a local Ubuntu box.
Still no luck on AlertSite.
--
rloseth
Hi rloseth,
How do you set the Chrome driver path? Do you use the PATH environment variable or set the system property "webdriver.chrome.driver" from your code? If the latter, try wrapping the assignment as follows:
if (System.getProperty("webdriver.chrome.driver") == null) {
System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
}Hi.
I use the PATH environment variable.
--
rloseth
Hello rloseth,
Customer Care would like to help you resolve your Selenium monitoring issue. Would you please open a support case with the account name and the device name here:
https://support.smartbear.com/message/?prod=Alertsite
Thank you!