Upload test reports from Pytest to Katalon TestOps
You can submit test results from the Pytest framework to Katalon TestOps.
You can download this sample project: TestOps Pytest sample.
Follow these steps:
-
Open your Pytest file in a source-code editor, such as Visual Studio Code.
-
Sign in to Katalon TestOps and go to your Project.
-
Go to Configurations > Integrations.
The Integrations page appears.
-
Select Pytest in the dropdown list.
The Pytest page appears as below.
-
Copy the command line in the Install dependency section and paste it in the Pytest file's terminal in your source-code editor to install the Katalon TestOps plugin.
-
Create a new file named testops-config.json in your source-code editor.
-
Copy the command line in the TestOps Credentials & Project section on the Pytest page and paste it in the testops-config.json file in your source-code editor.
-
Create a new file named conftest.py.
-
Copy the command in the Add Report section on the Pytest page and paste it in the conftest.py file in your source-code editor. Save this file.
-
Type the
pytest
command and press Enter to run tests.
You have run tests and uploaded their reports via Pytest.
-
Go to Test Execution > Test Run Calendar.
Your uploaded Test Runs now display here.