Locations was not found for images comparison

Hi Team,

currently am doing image comparison.when we run job/testcase from testproject its working fine with windowsagent.but same job is executed from docker system is showing error message like


yml file:
version: “3.1”

services:

testproject-agent:

image: testproject/agent:latest

container_name: testproject-agent

depends_on:

  - chrome

  - firefox

volumes:

  - C:/Users/Mani.Ravella/testprojectdocker:/var/testproject/agent

environment:

  TP_API_KEY: "zF1kSFfeHSQk9K1TfkKRPT13JEcL1VIu3Ll6_BehyCI1"

  TP_JOB_ID: "_bwGqLOsCkmQ-3VmvOnekw"

  TP_JOB_PARAMS: '"jobParameters" : { "browsers" : ["Chrome","FireFox"],"testParameters":[{ "data": [{ "ApplicationURL": "http://dev.tms.mpart.us/", "Username": "rahul.jamuar@gmail.com","imagepath:"C:\Users\Mani.Ravella\Documents\MANI.FILES\Test_Project\Screenshots\ExpectedDashboard.jpg"}]}]}'

  #TP_AGENT_ALIAS: 'MY docker agent'

  CHROME: "chrome:4444"

  FIREFOX: "firefox:4444"

chrome:

image: selenium/standalone-chrome

shm_size: '1gb'

firefox:

image: selenium/standalone-firefox

shm_size: '1gb'

Hi @mani_mpart.

The docker agent has no access to your local files.

If you want to give it access, you need to add the image file to the docker file volume path.

Then, make sure you change the image path in the action that you are using to compare the images. The path has to be: /var/testproject/agent/your_image_file_name.jpg , like this: