Test Automation For Web-Based Applications Portnov Computer School WebDriver Training Test Automation For Web-Based Applications Presenter: Ellie Skobel
Day 1 Navigating PyCharm
PyCharm Text editor Menu bar Project Structure Module Structure Breakpoints Quick Access Tabs Process Status Area
Editor Improves readability of code through color coding of elements Blue = number Improves readability of code through color coding of elements Provides Auto complete functionality Provides on-mouse-over object documentation. Facilitates object tracking shortcuts Blue = Python reserved word Ctrl + click opens object declaration Green = string Ctrl + Space opens available commands list
Debugging Tests To begin debugging set a break point Select the desired line of code Click in the left margin Run the test in debug mode Right-click the unittest TestCase file / document Select Debug 'unittests'
Debugging Tool Bar Debugger opens automatically during debugging Use the tool bar to navigate through the code Return to the calling object Step into referenced object Go to next break point Stop Debugging Execute entire line
Managing Breakpoints Use the Breakpoint View within the Debugger to select which breakpoints should be skipped and which should be completed Unchecked breakpoints will be skipped
Tracking Variables Use the Variables View within the Debugger to view values of current variables