Presentation is loading. Please wait.

Presentation is loading. Please wait.

Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.

Similar presentations


Presentation on theme: "Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel."— Presentation transcript:

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

2 2 Day 6 Configuring Selenium With PyCharm

3  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 3

4  Ensure Java is installed ◦ version 1.6 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 https://www.jetbrains.com/pycharm/download/ 4

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

6  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 2.7.3 (default, Apr 10 2012, 22.71:26) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>  Install Selenium Client  In cmd type: pip install selenium 6 If pip is not installed on your system, you can easily install it by running: python get-pip.py If pip is not installed on your system, you can easily install it by running: python get-pip.py

7  Open Selenium IDE  Open any test case (for example ValidLogin.html)  Select File > Export Test Case As > Python 2 / unittest / WebDriver 7

8  Select the Python Project you created ◦ You may optionally want to create a ‘tests’ subfolder for better organization  Enter a name for the Python file with the file extension.py  Click Save 8

9  Open any existing unittest TestCase  Right-click anywhere in the document  Select Run 9 Select Run


Download ppt "Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel."

Similar presentations


Ads by Google