Service Virtualization

  • 1.  Test case fails using Chrome web driver

    Posted Aug 11, 2017 03:29 AM

    Hello,

     

    We are running selenium webdriver code as groovy in CA DevTest and have problems with executing it using Chrome driver. Test case fails with error:  

    Message:     Script throw an exception: java.lang.SecurityException: Scripts cannot call Runtime.exec().

    Meanwhile test case successfully runs using FireFox driver using old (46) firefox browser version.

    But at this moment our devs added new functionality which does not work in old versions of browsers.

    Also the code which fails in DevTest  successfully executed in IDE (IntelliJ IDEA).

    Is there any solution to fix this problem?



  • 2.  Re: Test case fails using Chrome web driver

    Broadcom Employee
    Posted Aug 11, 2017 02:34 PM

    I found a simular error on another Communities Post:

    java.lang.SecurityException: Scripts cannot call Runtime.exec() 

     

    Does this help?



  • 3.  Re: Test case fails using Chrome web driver

    Posted Aug 14, 2017 11:50 AM

    Hi,

         Are there proper versions of Google Chrome Driver   in CA DevTest that you are using in Selenium script.



  • 4.  Re: Test case fails using Chrome web driver
    Best Answer

    Posted Aug 21, 2017 05:09 PM

    Hi Vish,

    I got the information below from the documentation: System Requirements - DevTest Solutions - 10.0 - CA Technologies Documentation 

    Note: Browser support for recording Selenium Integration tests is limited to Mozilla Firefox 42 through 47. After you import these tests to DevTest, running the test cases has been verified on Google Chrome, Mozilla Firefox 42 and 43, Apple Safari 7.0 (Mac), and Internet Explorer 10 and 11. Safari is not supported on Windows.

     

    Hope it helps.

    Heloisa