Skip to content

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

Open
@MininAS

Description

@MininAS

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions