Giter Site home page Giter Site logo

testproject-python-sdk's Introduction

testproject-python-sdk

Code for the Youtube video https://youtu.be/CxS5SX8f4yQ

Getting started with Python SDK for testproject.io

Setup the DEV token

  • For Linux and Mac
    • TP_DEV_TOKEN in your .bashrc or .bash_profile
    • For example on Linux (should also work on OSX): export TP_DEV_TOKEN=<your dev token here>
  • For Windows
    • Create env. variable TP_DEV_TOKEN in system settings and put the value there.

Setup and connect to agent

  • Visit testproject and click the agents menu (https://app.testproject.io/#/agents), select appropriate agent
  • Download and install
  • Once installer closes click on the message saying that the agent is not authorized
  • You have to log into testproject.io (allow the popup if needed) all should be well

Local computer

The example code and required dependencies are in the repository

  • Make sure you have python installed (python 3)
  • sudo dnf install -y git python3
  • pip3 install --user pipenv
  • installed Google Chrome using RPM [https://www.google.com/chrome/] (restart agent)
    • Note that because this video is based on RPM based distro I install it using RPM package. Pick the package for your OS here.
  • Clone the following github repository (git clone) https://github.com/testproject-io/python-sdk
    • Navigate into that dir (cd python-sdk)
    • pipenv install
    • pipenv shell
  • From within this virtual environment (python-sdk) install the Python sdk:
    • pip3 install testproject-python-sdk
  • Now run the test using python:
    • python tests/examples/simple/web_test.py

Report

References

testproject-python-sdk's People

Contributors

endegraaf avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.