Exception: Failed to run Robot test files

Issue #2 resolved
Carl Leferink created an issue

Hello,

Attempting to run Robot Framework files results in the stacktrace found below. Essentially the Bamboo log permanently hangs on the first test script step until the build run is stopped manually.

XX.RobotFramework.XXXTests.Smoke navalloptions :: A test suite smoke t...

I am able to run the .robot test scripts from the command line, but not through RobotTest Add-on via Bamboo.

I'm using: - geckodriver v0.15.0 (have tried v0.14.0 also) - Bamboo 5.15.2 build 51514 - 08 Mar 17 - robotframework-3.0.2-py2.7 - selenium 3.3 - Robot Selenium2library-1.8.0.py2.7.egg - Selenium2Library - Python 2.7 - Java jdk1.8.0_121 - Windows 10 x64

If there's any other information you need, please let me know.

com.atlassian.bamboo.task.TaskException: Failed to run Robot test files
    at Skyve.Bamboo.RobotTestTask.RobotTestTaskType.execute(RobotTestTaskType.java:107)
    at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$2(TaskExecutorImpl.java:313)
    at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:246)
    at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:313)
    at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:118)
    at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74)
    at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:216)
    at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:139)
    at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130)
    at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:221)
    at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129)
    at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:138)
    at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:51)
    at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
    at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
    at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
    at java.lang.Thread.run(Unknown Source)

Thanks for your time.

Kind regards,

Carl L.

Comments (4)

  1. Carl Leferink reporter

    You'll have to excuse me if this issues occurrence is due to my somewhat limited understanding of robot framework in general, but do the tests have to be headless to work with Bamboo? Is that why it's unable to run the test files?

    If so, is there a way to script the tests to run in a specified browser so I can test browser coverage as well as obtain screenshots if the tests fail? Or what is the best way to have the robot framework tests run in a Bamboo build using RobotTestTask?

    Thanks for your time.

  2. Carl Leferink reporter

    After troubleshooting for the last two days, I discovered the only way to run RobotTests using this plugin was to use phantomjs (headless) as the browser. I would highly recommend that you include this in your documentation.

    Steps (Win10): 1. Download and extract phantomjs 2. Add phantomjs/bin/ to PATH 3. Open command prompt and type phantomjs --webdriver=4448 4. For Suite setup should start with Open Browser ${LOGIN URL} phantomjs MainBrowser http://localhost:4448

  3. Log in to comment