Getting Error on CLI mode

tapan1986tapan1986 Posts: 26

I am getting below error while running this test in command line mode of SOA test though it is working fine in GUI mode.

java.awt.HeadlessException
at sun.awt.HeadlessToolkit.getSystemClipboard(HeadlessToolkit.java:309)

Tagged:

Comments

  • jakubiakjakubiak Posts: 519 admin

    What version of SOAtest are you using? What do your arguments to soatestcli look like?

  • NHawkNHawk Posts: 9 admin

    Are you attempting to run a Web Functional Test using the SOAtest CLI on a headless machine?

    If so then you will need to install the X virtual framebuffer (Xvfb) on your headless machine before you can successfully run a Web Functional Test as those are UI tests and require a graphical display. The X virtual framebuffer gets around this requirement because its functionality is to enable users to run graphical applications without a display.

    The doc below goes over how to set up a headless machine to run Web Scenarios in a headless environment.

    https://docs.parasoft.com/display/SOAVIRT9106/Running+Web+Scenarios+in+Headless+Mode

  • tapan1986tapan1986 Posts: 26
    edited February 11

    I am using SOA test Version 9.10.I am calling a selenium script using Selenium Executor provided by SOA Test.

    I am running the script in the same machine(WINDOWS only) both in GUI Mode and CLI Mode.

    GUI Mode working fine and CLI is giving this error.

  • jakubiakjakubiak Posts: 519 admin

    What is the full stack trace? It may be easier to contact Parasoft Support to better understand your specific use case and how best to support it.

Sign In or Register to comment.