Handshake
Handshake
Handshake
  • ๐ŸŠIntroduction
  • ๐ŸšŸSupported Frameworks
    • PyTest
    • WebdriverIO
  • ๐ŸซReference
    • ๐Ÿ“”Enhancements/Issuses
    • ๐Ÿ“–Storybook
  • Installation
  • ๐Ÿ‘ฃRelease Notes
    • ๐Ÿฉน0.7.9
  • ๐ŸšจPlease Note
    • ๐Ÿ—’๏ธReverting to the Older Version
  • ๐Ÿค—Why
  • ๐Ÿ’กIdea
  • ๐ŸŽHow Does
    • Entity Type
    • ๐ŸงชStatus Calculation
Powered by GitBook
On this page
  • Quick Example:
  • Test Results Available
  • Features ๐Ÿ—ฝ
  • Upcoming features ๐Ÿณ
  • Demo โœจ
  • Documentation ๐Ÿ“ฆ
  • Bugs/Feature Requests

Introduction

Helpful Reporter for your Test Framework

NextSupported Frameworks

Last updated 5 months ago

Handshake simplifies the process of exporting test results and sharing them in various formats. It processes the test results collected from test frameworks and ensures they are simplified for better clarity.

requires python 3.11 or 3.12

PyPI Package:

Quick Example:


# content of test_sample.py
def inc(x):
    return x + 1


def test_answer():
    assert inc(3) == 5
    
def test_simple():
    assert inc(3) == 4

Execute these tests and ensure that Handshake is installed. For example, we will use the pytest test framework. We have a custom reporter implemented for pytest, so once the package is installed, you can execute the tests by running: pytest.

Test Results Available


After running the tests, as shown above, the results are stored in the TeStReSuLtS.db file within the TestResults directory (configurable).

Sample File:


Please note the structure could vary over time, but you can get the base idea from the sample file

after the results are stored in the DB, we can execute a few commands, to export the required results.

Execute: handshake patch TestResults -e json -o JsonReport

Execute the command: handshake patch TestResults -xl

Please note in order to use Excel export you would need to install optional extras: excel-export

pip install handshakes[excel-export]

or

poetry add "handshakes[excel-export]"

Sample File:


Features ๐Ÿ—ฝ


  • Aggregates reports from various test frameworks

  • Stores reports in a .sqlite database

  • Supports export to Excel

  • Supports export to JSON files

  • Archives reports of multiple test runs

  • Enables grouping of test runs by project name

  • Rotates stored test reports

Upcoming features ๐Ÿณ


Demo โœจ


Documentation ๐Ÿ“ฆ


Bugs/Feature Requests

- While it is not necessary to restrict ourselves to this list, please note that one needs to start and supply results in a specific manner for Handshake to process them. The following custom reporters are available as of now, and additional ones can be provided upon request.

Please use the to submit bugs or request features.

๐ŸŠ
https://pypi.org/project/handshakes/
Installation Process
Supported Test Frameworks
Storybook
GitHub issue tracker
Webpack App
Demo Page for List of Runs
112KB
TeStReSuLtS.db
Sqlite File
7KB
JsonReport.zip
archive
Zip File
20KB
excel-export.xlsx
Excel File
TesResults is generated along with the sqlite file
Json Report Generated
excel is saved inside the TestResults