pytest-testrail icon indicating copy to clipboard operation
pytest-testrail copied to clipboard

Not able to export Background step from feature file to testrail

Open kunalbehl12 opened this issue 3 years ago • 1 comments

Describe the bug I am using BDD Cucumber pytest framework. I have been exporting test cases and results into testrail using pytest commands.

python -m pytest -v --pytest-testrail-export-test-results --pytest-testrail-test-plan-id [planID]--pytest-testrail-test-configuration-name "Windows 10 Chrome" --driver Chrome --driver-path=./binaries/webdriver/chromedriver --tags ""

However, I do not see Background step gets added in the precondition field of test cases in the testrail. I am also not getting any error. Test case gets added without background. Could you please suggest if anything is missing.

To Reproduce Steps to reproduce the behavior: Background: Given The browser resolution is '1367' per '768' -------> This is not added by using above command. It shows blank

@TR-C164442 @Kunal Scenario Outline: Navigate to test site Given I am on the url 'https://google.com/' Then I expect that the title contains

<p>Examples: | title | | Google |</p> <p>Command - python -m pytest -v --pytest-testrail-export-test-results --pytest-testrail-test-plan-id [planID]--pytest-testrail-test-configuration-name "Windows 10 Chrome" --driver Chrome --driver-path=./binaries/webdriver/chromedriver --tags "Kunal"</p> <p><strong>Expected behavior</strong> Background step should get added (in precondition section) like other scenario steps</p> <p><strong>Screenshots</strong> Precondtion remains blank.</p> <p><strong>Desktop (please complete the following information):</strong></p> <ul> <li>OS: Windows 10</li> <li>Browser Google Chrome</li> <li>Version 101.0.4951.67</li> </ul> <p><strong>Additional context</strong> We are using customized pytest testrail client library.</p>

kunalbehl12 avatar May 24 '22 07:05 kunalbehl12

Any update on this?

kunalbehl12 avatar May 26 '22 08:05 kunalbehl12