Giter Site home page Giter Site logo

Manager Fails to transfer resources to agent when test resource link in windows uses "Resource ../../../Resource/file.robot about rfswarm HOT 2 CLOSED

markro12 avatar markro12 commented on August 12, 2024
Manager Fails to transfer resources to agent when test resource link in windows uses "Resource ../../../Resource/file.robot

from rfswarm.

Comments (2)

damies13 avatar damies13 commented on August 12, 2024

Extract from discord chat:


crashfile — Today at 20:34
Robot Test Settings Resource line:
Resource ../../../Resource/Web_Client_Resource.robot

Resource location:
\AutomationTests\WebClient.Automation.Tests\Resource\Web_Client_Resource.robot

Test Location:
\WebClient.Automation.Tests\Tests\POC_Performance_Test_RF


damies13 — Today at 20:41
can you try changing that to
Resource ..${/}..${/}..${/}Resource${/}Web_Client_Resource.robot

I think I know what might be happening and changing it to that will confirm it
Resource ..\..\..\Resource\Web_Client_Resource.robot
Should work also


crashfile — Today at 20:47
both had the same result as before.

Shoud I try ../../../Resource/Web_Client_Resource.robot

as it seems you are trying to escape the /
result as before, meaning only copied 1 file in temp


damies13 — Today at 20:53
no, what I think might be happening is the manager is constructing the path to the resource files as something like c:\Cotton\klean\kanteen../../../Resource/Web_Client_Resource.robot
but windows doesn't like it when you do that, on windows all the slashes have to go the same way. I thought I'd caught all the instances of that happeining but I might have missed one
the manager knows how to handle the robot variable for ${/} which tells robot to use the system path slash \ for windows
in a robot file you need to escape \ as \ but you don't need to escape /
I was trying to get the slashes in the window style for your resource file entry to see if that was the issue


crashfile — Today at 21:01
I'm trying to run the test, and will report back on any error message that might be helpful.


damies13 — Today at 21:08
This resource path
Resource example\example.resource.robot
On my linux machine produced this:
RFSwarmBase: find_dependancies(1339): [8:7] linearr ['Resource', 'example\\example.resource.robot'] [1.2.0 @2023-06-14 21:00:01]
RFSwarmGUI: sr_file_validate(5747): [8:7] scriptfile: /home/dave/Documents/Github/rfswarm/Tests/Demo/demo_wth_resource.robot [1.2.0 @2023-06-14 21:00:01]
RFSwarmBase: find_dependancies(1351): [8:7] resfile example\example.resource.robot [1.2.0 @2023-06-14 21:00:01]
RFSwarmBase: find_dependancies(1362): [8:7] localrespath /home/dave/Documents/Github/rfswarm/Tests/Demo/example\example.resource.robot [1.2.0 @2023-06-14 21:00:01]

When I bumped the debugging up to 8

Looks like that's the issue
Can you create a bug report on github saying something like

Manager fails to transfer resources to agent when using a resource linke like this on windows:
Resource ../../../Resource/Web_Client_Resource.robot

Then you'll get notified when I fix it


crashfile — Today at 21:10
ok will do
any work around for now ?


damies13 — Today at 21:12
safest one is to use ${/} for the paths but if you only have windows machines you can use the escaped windows paths (\) either should work I can see in the code where the problem is happening


from rfswarm.

damies13 avatar damies13 commented on August 12, 2024

Fix for this issue has been merged into release v1.1.4 branch, This issue will be resolved with release v1.1.4

from rfswarm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.