Upload test reports from Jasmine to Katalon TestOps
You can submit test results from the Jasmine framework to Katalon TestOps.
You can download this sample project: Katalon TestOps JavaScript Reporters.
Follow these steps:
-
Open your Jasmine file in a source-code editor, such as Visual Studio Code.
-
Open the package.json file.
-
Type the
npm install
command, then press Enter and wait for it to run.
While waiting, go to the Katalon TestOps website.
-
Sign in to Katalon TestOps and go to your Project.
-
Go to Configurations > Integrations.
The Integrations page appears.
-
Select Jasmine in the dropdown list.
The Jasmine page appears as below.
-
Copy the command line in the Install dependency section and paste it in the package.json file in your source-code editor, then press Enter to run.
-
Create a new file named testops-config.json in your source-code editor.
-
Copy the content in the Configure TestOps plugin section in Katalon TestOps and paste it in the newly-created testops-config.json file in your source-code editor. Save this file.
-
Create a new file called setup.js in the test folder (the ./tests/setup.js file) in your source-code editor.
-
Copy the command in the Add Report section in Katalon TestOps and paste it in the ./tests/setup.js file. Save this file.
-
Copy the command in the Run tests and upload reports section in Katalon TestOps and paste it in your source-code editor, then press Enter to run.
-
Type the
npm test
command, press Enter to run in your source-code editor.
You have run tests and uploaded their reports via Jasmine.
-
Go to Test Execution > Test Run Calendar.
Your uploaded Test Runs now display here.