Skip to content

LuanaOS/robotTraning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Robot

IDE

Installing Pycharm

if you are in Linux you will have to:

  • extract the folder
  • enter the folder pycharm-community-2018.V.X (V and X are the numbers or the version) and then on the folder bin:
$   cd pycharm-community-2018.V.X/bin
  • after that execute:
$   ./pycharm.sh

Getting Started

Please check out the if you have all the Prerequisites so the project can run on you local machine.

Prerequisites

  • Python;
  • Web driver for the browser you would like to use;
  • Cropath extension for chrome.

Installing Python

If you do not have Python on your computer, you will need to install it using the command bellow or downloading it.

$   sudo apt-get install python

Downloading Web driver

Extract to a folder. (PS.: YOUR/PATH/TO/WEBDRIVER)

Cropath extension

This extension is used to make easier to find the locators using xpaths. Download it.

Setting up

Install pip

$   sudo apt install python-dev
$   sudo apt install python-pip
$   pip install virtualenv

Creating Virtual Environment through command line or through PyCharm:

Command Line:

$   virtualenv robotframework
$   source robotframework/bin/activate
$   pip install robotframework
$   pip install robotframework-ride
$   pip install robotframework-selenium2library

PyCharm:

  • File > Settings > Project > Project Interpreter > +
    • robotframework
    • robotframework-faker
    • robotframework-selenium2library
    • robotframework-seleniumlibrary

Plugins

  • Robot Framework Support:
    • File > Settings > Plugins > Browse repositories > Robot Framework Support

Useful source information:

Main:

Others:

Acknowledgments

To execute robot

REMEMBER every time you restart your machine you will have to give this command:

$   export PATH="YOUR/PATH/TO/WEBDRIVER":$PATH

where YOUR/PATH/TO/WEBDRIVER is the path to your web driver folder.

Execute all the tests

To execute all the tests on the file, run:

$   robot -d PATH/OF/YOUR/RESULTS PATH/OF/YOUR/TESTFILE.robot

PS.: -d results it is to indicate that the results of the tests/selenium/tester.robot will be stored in the folder ./results/selenium

$   robot -d results/selenium tests/selenium/tester.robot

Execute specific test

If you would like to run just one or another test you can use the -i TAG, like the example below:

$   robot -d PATH/OF/YOUR/RESULTS -i TAG PATH/OF/YOUR/TESTFILE.robot

PS.: where TAG is the [Tags]'s name of the test you would like to execute.

$   robot -d results/selenium -i resources tests/selenium/tester.robot

About

Robot Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published