Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run qase with pytest.mark.parametrize gives an error #47

Closed
berpress opened this issue Aug 16, 2022 · 4 comments
Closed

Run qase with pytest.mark.parametrize gives an error #47

berpress opened this issue Aug 16, 2022 · 4 comments
Assignees
Labels
bug Something isn't working to do Will be done

Comments

@berpress
Copy link

For example
Create Project, add test case with id = 1
Run this test

@qase.id(1)
@pytest.mark.parametrize('a, b, c', [
                            [1, 2, 3],
                            [1, 3, 4]
                            ])
def test_sum(a, b, c):
    assert a + b == c

with settings in ini file

qs_enabled=true
qs_api_token=xxxxx
qs_project_code=YOUR CODE
qs_new_run=true

Result

INTERNALERROR> qaseio.client.services.BadRequestException: Got error during response: b'{"status":false,"errorMessage":"Test run is not active"}'

This happens because the run test is already closed when parameterization is started 2. But I don't use the flag qs_complete_run, why did the testran close?

pytest 7.1.2
qase-pytest 2.3.2

@stale
Copy link

stale bot commented Sep 6, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Sep 6, 2022
@1ivliev 1ivliev removed the wontfix This will not be worked on label Sep 7, 2022
@n3r n3r self-assigned this Sep 12, 2022
@n3r n3r added bug Something isn't working to do Will be done labels Sep 12, 2022
@stale
Copy link

stale bot commented Oct 3, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 3, 2022
@1ivliev 1ivliev removed the wontfix This will not be worked on label Oct 3, 2022
@stale
Copy link

stale bot commented Oct 24, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 24, 2022
@1ivliev 1ivliev removed the wontfix This will not be worked on label Oct 24, 2022
@n3r
Copy link
Contributor

n3r commented Dec 5, 2022

@n3r n3r closed this as completed Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working to do Will be done
Projects
None yet
Development

No branches or pull requests

3 participants