Git Product home page Git Product logo

test_task_2_result's Introduction

Тестовое задание на должность QA Automation Engineer в Arenadata

Задание здесь - https://github.com/dgusakov/test_app

Требования к ПО

  • Python 3.7 и старше - www.python.org/getit/
  • Инструмент для работы с виртуальными окружениями virtualenv
pip install virtualenv
  • Для web тестов используется библиотека selene. Скачивать webdriver и т.п. нет необходимости. Библиотека все сделает автоматически.

Копирование репозитория и установка зависимостей

git clone https://github.com/arkuz/arenadata_test
cd arenadata_test
virtualenv env
env/bin/activate
pip install -r requirements.txt

Запуск тестов

  • Перед запуском тестов необходимо перейти в каталог проекта arenadata_test

Аргументы запуска:

  • -s - показывать принты в процессе выпонения
  • -v - verbose режим, чтобы видеть, какие тесты были запущены
Запуск всех тестов
py.test -s -v tests
Запуск API тестов
py.test -s -v tests/api
Запуск web тестов
py.test -s -v tests/web

Результат выполнения

============================= test session starts =============================
platform win32 -- Python 3.7.4, pytest-6.1.0, py-1.9.0, pluggy-0.13.1 -- C:\Users\arkuz\AppData\Local\Programs\Python\Python37-32\python.exe
cachedir: .pytest_cache
rootdir: D:\GitHub\arenadata_test, configfile: pytest.ini
collecting ... collected 14 items

test_api.py::TestsAPI::test_upload_template_without_data['temp.yaml'] 
test_api.py::TestsAPI::test_upload_template_without_data['1.yaml'] 
test_api.py::TestsAPI::test_upload_template_with_data['temp.yaml'] 
test_api.py::TestsAPI::test_upload_template_with_data['временный.yaml'] 
test_api.py::TestsAPI::test_upload_template_with_data['1.yaml'] 
test_api.py::TestsAPI::test_upload_template_invalid['without_extention'] 
test_api.py::TestsAPI::test_upload_template_invalid['extention_pdf.pdf'] 
test_api.py::TestsAPI::test_get_templates 
test_api.py::TestsAPI::test_delete_templates 
test_api.py::TestsAPI::test_delete_templates_invalid 
test_api.py::TestsAPI::test_insall_templates 
test_api.py::TestsAPI::test_insall_templates_not_exist_id 
test_api.py::TestsAPI::test_insall_templates_invalid 
test_api.py::TestsAPI::test_insall_empty_template_invalid 

============================= 14 passed in 1.01s ==============================

test_task_2_result's People

Contributors

arkuz 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.