damies13 / rfswarm

Robot Framework Swarm
GNU General Public License v3.0
114 stars 23 forks source link

The manager is not able to handle non-existent robot files. #241

Closed ArekKuczynski closed 5 months ago

ArekKuczynski commented 6 months ago

Describe the bug When you have a scenario file with some robot files, but the Manager cannot find them, the Manager will crash.

To Reproduce Steps to reproduce the behavior:

  1. Open Manager
  2. Save a scenario file with example robot file.
  3. Close Manager
  4. Delete or move the robot file
  5. Open Manager
  6. See error

Expected behavior Manager should handle this with a special message that rejects the scenario file and tells which files are not there. For now, if you want to repair Manager you need to delete the RFSwarmManager.ini and reopen the Manager.

Screenshots image image image

Additional context test.rfs file:

[Scenario]
uploadmode = err
scriptcount = 1
graphlist = 

[1]
robots = 10
delay = 10
rampup = 10
run = 10
test = Example Test Case
script = i_dont_exist.robot
damies13 commented 6 months ago

I agree this is a bug :+1:

damies13 commented 5 months ago

Merged changes fixed this issue