Running tests using Selenium grid and phantomjs - java.lang.RuntimeException: java.lang.ClassCastException: java.lang.String cannot be cast to java.ut

47 views
Skip to first unread message

bull...@gmail.com

unread,
Mar 15, 2016, 1:12:51 AM3/15/16
to Galen Framework
Hi There, 

I'm having some issues running my Galen tests with Selenium Grid. I keep getting this error (java.lang.RuntimeException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map). Not sure if I'm passing the arguments to the test / Selenium Grid. 

Just trying to run a basic test using a local copy of Phantom against the default Galen test page.

Thanks in advance. 


Galen version:

Galen Framework

Version: 2.2.3

JavaScript executor: Rhino 1.7 release 5 2015 01 29


Operating System: Mac OSX yosemite


Phantom version:


"karma-phantomjs-launcher": "^0.1.4",


Selenium command:


java -jar selenium-server-standalone-2.52.0.jar -role hub http://localhost:4444/wd/hub 


Galen test:



@@ parameterized
    | breakpoint | tags | size     |
    | Desk       | desk    | 1025x800    |
    | Laptop     | laptop  | 1024x800    |
    | Tablet     | tablet  | 767x800     |
    | Palm       | palm    | 480x800     |
    | Mobile     | mobile  | 320x800     |


${task}: ${subtask} - ${breakpoint}
    selenium grid http://127.0.0.1:4444/grid/wd/hub --page http://testapp.galenframework.com/ --size ${size} --browser phantom --platform "yosemite"
        check test.spec—include "${tags}"



Ivan Shubin

unread,
Mar 22, 2016, 9:14:38 AM3/22/16
to Galen Framework
Could you please post the complete exception with full stacktrace?
Reply all
Reply to author
Forward
0 new messages