I am trying to integrate TestRail with Jenkins where I want to run some test cases from test rail which calls the test cases in jenkins, and then writes the result back to TestRail itself, or something similar to this.
I know there is an API for this, but so far I am not able to figure out how to go ahead with this API.
Any suggestions would be of great help.
There is a Jenkins plugin maintained by the Jenkins team at GitHub:
Integrate test results from Jenkins into TestRail. Upload your junit
test results to TestRail after every run.
The plugin only allows to populate TestRail with the test results, but maybe you can start from there.
I too am attempting to integrate TestRail with our Jenkins installation. This blog post is pretty good: https://qxf2.com/blog/reporting-to-testrail-using-python/
You will need a way to map each Jenkins test to the appropriate TestRail test-case id, Ex: C123.
After the Jenkins run, reconcile the test results with the mapping and POST to the TestRail API with the test_run_id, test-case id, and the test result status_id as defined in TestRail.
Related
I need to migrate the existing test cases from testRail to Xray (Jira). Can anyone pls help me with any macros or tools.
Tried to migrate the existing test cases from testRail to Xray
Can anyone help me with the Integration of SOAPUI and Testrail. If there is any Youtube or any other tutorials please share
After execution of testcases from soapui the status should get updated in testrail
https://discuss.gurock.com/t/how-to-log-into-testrail-api-with-soapui/10849
Can u try this??
Also Test rail api is exposed.. you can take the code and convert that code in to jar put in to soapui/bin/ext folder. Now u write a groovy code to use that library
You might want to have a look at (Agiletestware Firefly plugin for ReadyAPI (SoapUI Pro).
It integrates with ReadyAPI and upload test results (including HTTP/SOAP request and response) into TestRail for each run of your tests in ReadyAPI.
Here is the link to the documentation: https://www.agiletestware.com/docs/firefly-docs/en/latest/
Disclaimer: Agiletestware Firefly is a commercial product and I'm a developer of this product
Is there any way to integrate Cypress test cases with Testlink?
I think of a situation where when running the test, it created the suite test and the case test and updated the status of the testLink to for example passed (if cypress has run the entire test successfully)
Yes it's possible to integrate Cypress with Testlink Because Testlink has its own API and you would need to write your own plugin to integrate it though.
This is the path to the api: /lib/api/rest/v2 and Here are all the Rest endpoints: https://github.com/TestLinkOpenSourceTRMS/testlink-code/blob/testlink_1_9/lib/api/rest/v2/tlRestApi.class.php
then do a GET on http://localhost:3000/lib/api/rest/v2/whoAmI Good Luck
I am working using TFS to create test case. I have a automated test written in Robotframework with Selenium2Library.
I'd like to be able to associate these tests with test cas in test. Is it possible to link the automated test cases with the test case in TFS, and if so, how is it done?
The web Test page does not support to run automatic tests associated with test cases in TFS.
You can achieve the same goals using the Build & Release features in Team Foundation Server (TFS). (https://www.visualstudio.com/en-us/docs/test/lab-management/use-build-or-rm-instead-of-lab-management). Simply integrate Selenium testing into a continuous integration/continuous delivery pipeline.
Instead of build, suggest you use a step in a release pipeline. Take a look at this question:How can i run automated selenium tests using TFS build 2015?
More detail steps about how to integrate with TFS please go through the official tutorials from MSDN: Get started with Selenium testing in a CD pipeline
I am working on one devops project, from selenium I am running test script and a log file is getting generated. How to configure jira to read the log file generated by selenium.. I want to go with API approch but unable to do so. Jenkins I am using as a CI tool here. Any suggestions ?
Hmm. Generally it's a better approach to display your test results in Jenkins instead of creating issues for them automatically. You didn't mention what technology you use (nodejs, java, ...), but typically you let your test runner generate a test results file that jenkins can interprete, so it will display the results nicely. There are various jenkins plugins that can help with that.
If you want to go a step further and still create issues automatically, you can script that in a separate step of your jenkins job, using the JIRA REST API and a scripting language of your choice. It just comes down to parsing the results file and let your script create issues for the failures.