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_DIRis set to/tmp/downloadsand 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

