Skip to content Skip to sidebar Skip to footer
Showing posts with the label Testing

In Pytest, How Can I Figure Out If A Test Failed? (from "request")

I'm using Selenium with PYTEST to test a site. I would like to take a screenshot of the page wh… Read more In Pytest, How Can I Figure Out If A Test Failed? (from "request")

Py.test Logging Messages And Test Results/assertions Into A Single File

I am starting to work with py.test at the moment for a new project. We are provisioning Linux serve… Read more Py.test Logging Messages And Test Results/assertions Into A Single File

Is There Way To Only Perform The Doctests, Ignoring Print Function Calls?

Hypothetically speaking, my function returns a value and has lot of print statements (maybe 100 or … Read more Is There Way To Only Perform The Doctests, Ignoring Print Function Calls?

Same Tests Over Many Similar Data Files

With python and unittest I have this structure of test directory: tests/ __init__.py test_001.p… Read more Same Tests Over Many Similar Data Files

Extract Functions From Python File And Write Them To Other Files

i have writted a python file with a lot of functions and i decided i want to split all of them to d… Read more Extract Functions From Python File And Write Them To Other Files

Selenium - Get Location After Clicking On An Anchor

I'm trying to check the fact that when I click on an anchor link, some section is really at the… Read more Selenium - Get Location After Clicking On An Anchor

Actually Testing My Constructed Application (flask, Python)

If I have an application built, what is the protocol for testing the actual application? I'm j… Read more Actually Testing My Constructed Application (flask, Python)

How To Write A Test Case For This Django Custom Tag

Django version : v1.10 Python : 3.5 (this is important as it turns out .. look at the answer) I fo… Read more How To Write A Test Case For This Django Custom Tag

How Do You Install Pywin32 From A Binary File In Tox On Windows?

My application depends on pywin32 which I have installed in my system environment via Windows binar… Read more How Do You Install Pywin32 From A Binary File In Tox On Windows?

Tools To Coverage Tests Django Rest Framework

I am studying TDD and developing an API in Django Rest Framework, and I had a need that I researche… Read more Tools To Coverage Tests Django Rest Framework

Webpage Test With Python Selenium: Really Slow Execution

I wrote, in Python, using Selenium, a very simple test of a webpage Here the code: from selenium i… Read more Webpage Test With Python Selenium: Really Slow Execution

Custom Django Management Command With Appended Parameters

My team runs a custom test suite pretty regularly. When we want to run the whole thing, we do ./ma… Read more Custom Django Management Command With Appended Parameters

Wrap Each Pytest Test Function Into Try-except

I want to wrap each of my test functions into a try-except block to execute code in the except bloc… Read more Wrap Each Pytest Test Function Into Try-except

Find Qwidget Object Text By Using Pywinauto

I work as a test engineer. I have to test an application(softphone) which is done by using QWidget.… Read more Find Qwidget Object Text By Using Pywinauto

How To Mock Python's Datetime.now() In A Class Method For Unit Testing?

I'm trying to write tests for a class that has methods like: import datetime import pytz class… Read more How To Mock Python's Datetime.now() In A Class Method For Unit Testing?

Flask Testing - Why Does Coverage Exclude Import Statements And Decorators?

My tests clearly execute each function, and there are no unused imports either. Yet, according to t… Read more Flask Testing - Why Does Coverage Exclude Import Statements And Decorators?

For E2e Testing: Which Is Better Selenium Or Protractor For Following Web Stack (angular, Python And Mongodb)?

I recently came to know about protractor framework which provides end to end testing for angular ap… Read more For E2e Testing: Which Is Better Selenium Or Protractor For Following Web Stack (angular, Python And Mongodb)?

How To Test A Connexion/flask App?

I'm using the Connexion framework for Flask to build a microservice. I would like to write test… Read more How To Test A Connexion/flask App?

An Issue With Kiwi Tcms

I am trying to use Kiwi TCMS RPC API (project page) with the newest version installed (3.49) and it… Read more An Issue With Kiwi Tcms