Robot framework POC for Web and API tests
SETTING UP PROJECT
-
Installing python on Machine
-
Installing PIPENV on machine
pip install pipenv
-
Cloning project
git clone https://github.com/mangeshrane/POC-Robot-Framework.git
-
Install project dependencies open terminal in project directory run
pipenv install
-
To activate this project's virtualenv
run
pipenv shell
Alternatively, run a command inside the virtualenv with
pipenv run <command>
-
Setting up development envirornment
-
Install Eclipse IDE or Pycharm
-
Robot Framework Plugin
Robot framework support
andintellibot
plugins for pycharmRED Plugin by Nokia for eclipse
-
`robot testcases`
-
running tests with tags
robot --include smoke --name "Smoke Tests" path/to/tests.robot
-
running tests using python module
python -m robot path/to/tests
-
Specifying variables runtime
robot -v VARIABLE:value path/to/test.robot
-
Running test suites in parallel
pabot testsuites
-
Test Case file types other than .robot are depricated from robot version 3.0. +
-
To run legacy files using newer version of Robot we Can use --extension ROBOT:rst option to specify type explicitly or change the existing suite file into new Robot file using
python -m robot.tidy --inplace [options] inputfile [more input files]
- https://github.com/robotframework/HowToWriteGoodTestCases/blob/master/HowToWriteGoodTestCases.rst
- https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html
- https://github.com/robotframework/SeleniumLibrary/blob/master/docs
- https://pipenv.readthedocs.io/en/latest/
- https://bulkan.github.io/robotframework-requests/doc/RequestsLibrary.html