I would like to run multiple .robot files in a row using the zoomba desktop library. At the moment i am unable to do so as the session ID remains between Test Suite.
This is the error i am getting:
No active session with ID CBCDB277-5299-4CA4-9E82-69AC865625BE
I am using Driver Teardown and Quit Application at the end of my test cases.
I was wondering if there is a better way to teardown the driver or to clean the session ID.
Iâm going to need a bit more detail here to help and perhaps some sample code you are working with.
It looks like you are trying to reuse your current session between tests but since you are tearing down the driver after every test that will not be possible.
I was able to repro the issue using the sample.robot file that is provided. The issue only arise on the sample test at the âSwitch To Desktop Testâ test case on the second run.
The result of the Test case is:
Switch To Desktop Test | FAIL |
WebDriverException: Message: No active session with ID B33D92DE-3D8E-406E-9067-BE57965CCD4A
Step to repro the issue:
I Copied the sample.robot file and renamed the copied version sample_b.robot in the same folder
Navigate to the folder where both sample.robot file are located
launch a Test suite by opening Cmd to the above folder using the command: robot .
In my test i am using the function Switch Application By Name in my robot file, i am thinking this is where the problem arise and using the splash_delay=6 exact_match=False in Open application function.
Though I donât currently use this Library I have to say from someone encountering the issue to bug fix and update released <7 days is very Impressive
Well Done Brandon and the robotframework-zoomba team