testrail

In pytest print text to testrail comment

Deadly 提交于 2021-02-11 12:55:50
问题 I am using pytest-testrail plugin to upload test result to testrail. I'd like to post the output from my test program (usually using a print command) to testrail also. How can we do this? I tried something like pytest -rA or -s etc. without success. for example, one of my test cases: @pytestrail.case('C18346') @pytest.mark.hw @pytest.mark.debug def test_cputemp(): cmd = "cat /sys/class/hwmon/hwmon1/temp*_input" r = ssh_client.execute(cmd) print() print(r['out']) print("Please check the

How to Tag Data Driven Template Tests in Robot Framework

 ̄綄美尐妖づ 提交于 2021-01-28 00:10:39
问题 I have numerous data driven tests so that I can run the same test with multiple rows of data, which works well. However, we also use TestRail and link RF tests to TestRail via a Tag on the RF test. Currently I'm only tagging one TestRailID per template. Eg: *** Test Cases *** Verify Registering For An Event with each CC Type [Template] Register For An Event with a Credit Card [Tags] TestRailID=1211 Smoke ${cc_intl} ${personInfo} ${visaCardInfo} ${cc_intl} ${personInfo} ${masterCardInfo} ${cc

Pytest Testrail Module - Post Test Results for Test Runs

我的未来我决定 提交于 2020-06-18 13:41:52
问题 I am trying to use the pytest testrail module and started with this demo script: import pytest from pytest_testrail.plugin import testrail @testrail('C165') def test_run(): print "T165:pass" It does create a test run but does not post any results to the corresponding test cases. 回答1: Try adding an assertion as that is what the pytest hook is looking for: import pytest from pytest_testrail.plugin import testrail @testrail('C165') def test_run(): assert False 回答2: Here is add_result function.

Integrate Selenium test results with TestRail 4.0

时光怂恿深爱的人放手 提交于 2019-12-19 03:57:04
问题 I am working on Selenium test Automation. I create my Selenium test-suite to automate my test suite. Now i want to integrate the Selenium results with the TestRail. I am not sure how to integrate the results of the Selenium test runs to TestRail Test suite. I wrote all test cases in java. I am stuck now. It would be helpful to me with an example. I am using testng framework, Maven build tool. 回答1: The basic idea is that you need to be able to link your results back to the unique Test ID in

How to add test cases to an existing test run with the API from Java to TestRail?

送分小仙女□ 提交于 2019-12-11 02:25:43
问题 I have created a test run during the execution time, and I would like to add test cases meanwhile they are starting the execution. The test cases have been created, if they already doesn't exist. And this test case should be added to an existing test run with other test cases. I have tried to use the setCaseIds over the run and after update the run, but that override the existing run. I think the error is because I'm using the setCaseIds , but I don't know the proper way to do. Case mycase =