Presentation is loading. Please wait.

Presentation is loading. Please wait.

Test Automation For Web-Based Applications

Similar presentations


Presentation on theme: "Test Automation For Web-Based Applications"— Presentation transcript:

1 Test Automation For Web-Based Applications
Portnov Computer School WebDriver Training Test Automation For Web-Based Applications Presenter: Ellie Skobel

2 Day 1 Configuring Selenium With PyCharm

3 PyCharm - Python Code Editor
Intelligent Code Editor Syntax highlighting Auto-Indentation Code completion Easy Code Navigation & Search Go to Declaration Find Usages Code Inspection On-the-fly error highlighting Quick-fixes Python Refactoring Perform global code changes

4 Installing PyCharm Ensure Java is installed Install Python
version 1.7 or later is advised Install Python version 2.7 is what we will use in this class Add Python and Java to your system $PATH variable Download and install PyCharm

5 Create a PyCharm project
Launch PyCharm. Select File > New Project Enter Project name and desired location Select a Python Interpreter

6 Adding Selenium to Python Project
Open cmd (or Terminal) Ensure python is installed and has been added to System PATH variable You should be able to type python in cmd and see the following: Python (default, Apr , 22.71:26) [MSC v bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> Install Selenium Client In cmd type: pip install selenium If pip is not installed on your system, you can easily install it by running: python get-pip.py

7 Creating PyUnit Tests Context-click the Project name
Select New > Python File

8 Creating PyUnit Tests In the ‘New Python file’ pop up select
Enter the Test Name into the ‘Name’ field. Select the ‘Python unit test’ option from the ‘Kind’ dropdown.

9 Run Python Tests in PyCharm
Open any existing unittest TestCase Right-click anywhere in the document Select Run Select Run


Download ppt "Test Automation For Web-Based Applications"

Similar presentations


Ads by Google