How to use configure_visual_directories method in toolium

Best Python code snippet using toolium_python

driver_manager.py

Source:driver_manager.py Github

copy

Full Screen

...177 else:178 parent_directory = os.path.join('../..', parent_directory)179 return os.path.abspath(directory)180 @classmethod181 def configure_visual_directories(cls, driver_info):182 if cls.screenshots_directory is None:183 date = datetime.datetime.now().strftime('%Y-%m-%d_%H%M%S')184 folder_name = '%s_%s' % (date, driver_info) if driver_info else date185 from arc.contrib.utilities import get_valid_filename186 folder_name = get_valid_filename(folder_name)187 # This line was corrected because it was stepping on the output directory188 # cls.output_directory = os.path.abspath("output/")189 visual_directory = os.path.abspath("output/") #noqa190 cls.screenshots_directory = os.path.join(visual_directory, 'screenshots', folder_name)191 cls.screenshots_number = 1192 cls.videos_directory = os.path.join(visual_directory, 'videos', folder_name)193 cls.logs_directory = os.path.join(visual_directory, 'logs', folder_name)194 cls.videos_number = 1195 cls.visual_output_directory = os.path.join(visual_directory, 'visualtests', folder_name)...

Full Screen

Full Screen

driver_wrapper.py

Source:driver_wrapper.py Github

copy

Full Screen

...98 self.configure_logger(tc_config_files.config_log_filename, tc_config_files.output_log_filename)99 self.configure_properties(tc_config_files.config_properties_filenames, behave_properties)100 if is_selenium_test:101 driver_info = self.config.get('Driver', 'type')102 DriverManager.configure_visual_directories(driver_info)103 self.configure_visual_baseline()104 def connect(self, maximize=True):105 if not self.config.get('Driver', 'type') or self.config.get('Driver', 'type') in [106 'backend', 'no_driver', 'host', 'service', 'api'107 ]:108 return None109 self.driver = SetupDriver(self.config, self.utils).create_driver()110 self.session_id = self.driver.session_id111 self.server_type, self.remote_node = self.utils.get_remote_node()112 if self.server_type == 'grid':113 self.remote_node_video_enabled = self.utils.is_remote_video_enabled(self.remote_node)114 else:115 self.remote_node_video_enabled = True if self.server_type in ['ggr', 'selenoid'] else False116 if self.is_mobile_test() and not self.is_web_test() and self.config.getboolean_optional('Driver',...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run toolium automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful