robotframework-docker-action icon indicating copy to clipboard operation
robotframework-docker-action copied to clipboard

Unable to access resource file while running robot test

Open RahulMSonone-eaton opened this issue 1 year ago • 2 comments

[ ERROR ] [ DataDriver ] Error in robot file: File "/opt/robotframework/tests/crm.robot", line 0 [ ERROR ] In source file: File "../test_data/test_data2.xlsx", line 0 [ ERROR ] Calling method '_start_suite' of listener 'DataDriver' failed: FileNotFoundError: File attribute was not a full path. Tried to find /opt/robotframework/tests/../test_data/test_data2.xlsx but file does not exist. Test Template | PASS | Skipping Test

RahulMSonone-eaton avatar Mar 26 '23 10:03 RahulMSonone-eaton

/

  • name: Robot Framework test execution # You may pin to the exact commit or the version. # uses: joonvena/robotframework-docker-action@3e8b84bd3e3a82b9dc854cf47c82a768f740c14d uses: joonvena/[email protected] with:

# Directory where Robot tests are located in the repository

          robot_tests_dir: test

RahulMSonone-eaton avatar Mar 26 '23 10:03 RahulMSonone-eaton

├── .github │ └── workflows │ └── robot.yml └── test ├── MyLibrary.py └── tests.robot └── test_data ├ └── test_data.xlsx

RahulMSonone-eaton avatar Mar 26 '23 10:03 RahulMSonone-eaton