Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The RobotEyes library would may to use different folders for baseline image. #95

Open
MininAS opened this issue Jun 3, 2021 · 1 comment

Comments

@MininAS
Copy link
Contributor

MininAS commented Jun 3, 2021

Let our test asset contains several test suites. By some reason we need to use separeted baseline images folder for each suite.
We know the folder name should be set to IMAGES_DIR variable.

But when the report generator script start to create visualReport we get exception because IMAGES_DIR variable contains last set value from the last test suite and previous folder names can not be found.

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "........./python3.6/site-packages/RobotEyes/report_generator.py", line 74, in generate_report
    folder_name)
  File "........./python3.6/site-packages/RobotEyes/report_generator.py", line 227, in make_test_table
    for filename in os.listdir(baseline_folder + os.path.sep + folder_name):
FileNotFoundError: [Errno 2] No such file or directory: 'visual_images_original/Test_Case_Name_From_First_Suites'

I image that it can be difficult to implement. It can need to creation of visualReport file during test running.

@jessezach
Copy link
Owner

Im not actively working on this library as I'm busy working on other projects in my free time. If you can work on an implementation, I would be happy to take a look at it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants