Skip to content

elixirautomation/PythonAPIAutomationFramework

Repository files navigation

RAFT Reusable Automation Framework For API Testing

Initial Setup:

  • Install and configure Python3

  • Setup your IDE (Preferably Pycharm Community Edition)

  • Import cloned repository as project

  • Install allure plugin for reporting

    • For Windows:

      • Run this command in powershell
          iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
      • After installing scoop run this command
          scoop install allure
    • For Mac:

      • Run this command on terminal to install homebrew
          /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
      • After installing homebrew run this command
          brew install allure
    • For Linux:

      • Run following commands to install the allure on linux
          sudo apt-add-repository ppa:qameta/allure
          sudo apt-get update
          sudo apt-get install allure
  • Install all required packages using this command

    pip install -r requirements.txt
  • Add your test case under TestScripts folder

  • Add your test data to TestData.xslx file

  • Goto execution_commands.md and select specific command to execute the test case

Example:

  • Open pycharm terminal (Alt+F12) and run following command to invoke the chrome browser locally on staging environment
    py.cleanup -p && py.test -m smoke --alluredir ExecutionReports/
  • Trigger Allure Reports
    allure serve ExecutionReports/

Report Portal Integration

  • Install and Configure Report Portal

  • Change/ Enable Configuration in pytest.ini file

    • rp_uuid
    • rp_launch
    • rp_endpoint
    • rp_project
  • Run following command to record the results for Report Portal

    py.cleanup -p && py.test --reportportal

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy