Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Not able to export Background step from feature file to testrail #159

Open
kunalbehl12 opened this issue May 24, 2022 · 1 comment
Open

Comments

@kunalbehl12
Copy link

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 <title>

Examples:
| title |
| Google |

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"

Expected behavior
Background step should get added (in precondition section) like other scenario steps

Screenshots
Precondtion remains blank.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Google Chrome
  • Version 101.0.4951.67

Additional context
We are using customized pytest testrail client library.

@kunalbehl12
Copy link
Author

Any update on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant