Issue: Robot tests fail in Bamboo Docker agent because importResults.json is not downloaded

Robot Framework test fails with:

Keyword 'File Should Exist' failed after retrying 10 times. 
The last error was: File '/tmp/downloads/importResults.json' does not exist.

Context:

  • Running tests inside Bamboo agents provisioned via Docker (docker-compose).

  • DOWNLOAD_DIR is set to /tmp/downloads and mounted from the host into the container.

  • However, the directory remains empty both inside the container and on the host after test execution.

Root Cause:
Chrome inside the Bamboo Docker agent opens JSON responses inline instead of saving them to disk. Current Chrome prefs only set download.default_directory, which is insufficient.

Proposed Fix:
Update login.resource with extended Chrome preferences:


Bamboo script code:

docker-compose.yml (agent part)

bamboo-agent-1:
  build:
    context: .
    dockerfile: Dockerfile.bamboo-agents
  container_name: bamboo-agent-1
  environment:
    - BAMBOO_SERVER=http://bamboo:8085
    - AGENT_NAME=agent1
    - TOTAL_AGENTS_COUNT=5
    - DOWNLOAD_DIR=/tmp/downloads
  volumes:
    - ./bamboo-agents/agent1:/opt/bamboo-agents
    - /etc/localtime:/etc/localtime:ro
    - ./bamboo-agents/agent1/downloads:/tmp/downloads
  depends_on:
    - bamboo
    - selenium-hub
  networks:
    - bamboo-network

I don’t know the specific answer for JSON files, but I remember a discussion a while back that there was an extra setting for PDF’s

This link seems to be the opposite problem from what you’re having, but maybe it will lead you to the answer?

Hope that helps,

Dave.