Skip to content

rupesharlekar/robot_framework_tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment

Coded Solution for assignment is as below

Task 2 : test_api_bhagwadgita.robot

Task 2 Alternative : test_search.robot

Project Structure

├── Config.py                                       # Config file contains the URL endpoints
├── geckodriver.exe									 
├── Logs
│   ├── api
│   │   └── latest                                  # latest test run files for API tests
│   └── gui
│       └── latest                                  # latest test run files for UI tests
├── Modules
│   ├── __init__.py	
│   ├── api
│   │   ├── __init__.py
│   │   └── bhagwadgita_api.py                      # contains all the test for REST API verification
│   ├── api_util.py                                 # Helper file for REST API verification
│   ├── gui			
│   │   ├── __init__.py
│	│   ├── search_page.py                          # Contains the Verification on first page
│   │   └── search_result_page.py                   # Contains the Verification on Search Result page
│   └── util.py                                     # Helper file for UI Verification
├── ObjectRepo
│   ├── obj_search_page.py                          # contains locators for Google Search Main Page
│   └── obj_search_result_page.py                   # contains locators for Google Search Result Page
├── README.md
├── requirements.txt			
├── Resources
│   ├── api
│   │   └── bhagwadgita_resource.robot              # robot resource keyword file for REST API verification
│   └── gui
│       ├── search_resource.robot                   # robot resource keyword file for Google Search Main Page
│       └── search_result_resource.robot            # robot resource keyword file for Google Search Result Page
├── Test.pdf
└── Tests
    ├── test_api_bhagwadgita.robot                  # Test for BhagwadGita REST API
    └── test_search.robot                           # Test for Google Search UI 

Technology / Frameworks used

Features

  • page object patterns for Web UI automation
  • layered structure
  • also used for REST API automation

Installation

git clone [email protected]:rupesharlekar/robot_framework_tests.git && cd robot_framework_tests
pip install -r requirements.txt

How to run tests

Task2 - API Tests

robot -d Logs\api\latest Tests\test_api_bhagwadgita.robot

Task2 Alternative - UI Tests

robot -d Logs\gui\latest -vbaseurl:https://www.google.com -vbrowser:ff Tests\test_search.robot

Execution Logs

Task2 - API Tests

Alt text

Task2 Alternative - UI Tests

Alt text

Releases

No releases published

Packages

No packages published