Skip to content

Vastra-Gotalandsregionen/selenium-vgregion_se

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selenium-vgregion se

Getting started

  1. Install Python
  2. Install pip
  3. Install robotframework with pip (pip install robotframework).
  4. Install selenium with pip.
  5. Install robotframework-seleniumlibrary with pip.
  6. Install robotframework-selenium2library with pip.
  7. Install requests with pip.
  8. Install beautifulsoup4 with pip
  9. Get chromedriver matching your Chrome version.

How to run tests from terminal

  1. run python3 -m robot -d my-folder my-test.robot (where my-folder is a folder to save test results in, and my-test.robot is the test to run)

Here's an excellent guide: How to execute robot framework tests

How to run tests from IDE

Installing Pycharm

  1. Download Pycharm
  2. Install and open program, click configure
  3. Type Intellibot into the searchbar
  4. Choose plugin Intellibot @SeleniumLibrary Patched and install
  5. Install plugins: Robot FrameWork Support, Run Robot FrameWork TestCase
  6. Restart Pycharm

Sublime text

  1. Make sure to have the Python 3-package
  2. Navigate to the .robot file you want to run.
  3. Press Ctrl/Cmd + B to run.

Contribute

Python guidelines

License

This code is released under the MIT license.