Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Triggering tests through Jenkins on a self-hosted Selenium Server leads to Exceptions #41

Open
rmadakasira opened this issue Mar 3, 2015 · 6 comments

Comments

@rmadakasira
Copy link

Hi,

I am able to run tests successfully through UI by clicking on "Execute Tests" in "Test Console" page. I am now trying to trigger tests through my Jenkins job, and it triggers the below error. I am able to trigger tests when the "WebDriver Service Provide" is sauceLabs.

Based on this I would imagine, I will have to make few more configuration changes, and I don't want to re-invent the wheel. Your help is appreciated. Thanks.

Mar 03, 2015 11:15:36 AM cinnamon.Ccli main
SEVERE: An unexpected error occurred. aborting test
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.util.Map
at cinnamon.CinnamontTestSuite.getMapFromJson(CinnamontTestSuite.java:82)
at cinnamon.CinnamontTestSuite.run(CinnamontTestSuite.java:158)
at cinnamon.Ccli.run(Ccli.java:80)
at cinnamon.Ccli.main(Ccli.java:48)

@nadeemg
Copy link
Contributor

nadeemg commented Mar 3, 2015

Hi @rmadakasira,

I'm assuming that you've written your own class implementing RemoteWebDriverServiceProvider and configured the Settings page to point to your self-hosted server.

  • Have you been able to trigger a test manually, i.e. through the TestConsole, against your self-hosted selenium server?
  • What version of ccli are you using?

@rmadakasira
Copy link
Author

@nadeemg

@nadeemg
Copy link
Contributor

nadeemg commented Mar 4, 2015

@rmadakasira best guess is that the version of ccli you're using is outdated, and isn't working well with cinnamon. Unfortunately, we do not have a plan for releasing ccli.

Could you rewrite your jenkins job to go through the UI instead?

@rmadakasira
Copy link
Author

I don't think I follow you. Can you please explain what you mean ? Thanks.

@nadeemg
Copy link
Contributor

nadeemg commented Mar 7, 2015

Since you can manually run tests, why not write a little java or python using webdriver to login to your DE org and run the tests through the UI? This isn't a great solution, I know, but like I said, we have no plans for releasing ccli at this point.

@drorm
Copy link

drorm commented Apr 28, 2015

Does this mean that the REST API is not supported either? Couldn't find documentation for it anywhere.

You should probably update http://forcedotcom.github.io/cinnamon/ and remove the mention of ccli.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants