-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
recording ui-session-id for report portal logging
- Loading branch information
1 parent
f10676e
commit 2fa8683
Showing
5 changed files
with
48 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import pytest | ||
|
||
from robottelo.hosts import Satellite | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def ui_session_record_property(request, record_property): | ||
""" | ||
Autouse fixture to set the record_property attribute for Satellite instances in the test. | ||
This fixture iterates over all fixtures in the current test node | ||
(excluding the current fixture) and sets the record_property attribute | ||
for instances of the Satellite class. | ||
Args: | ||
request: The pytest request object. | ||
record_property: The value to set for the record_property attribute. | ||
""" | ||
for fixture in request.node.fixturenames: | ||
if request.fixturename != fixture: | ||
if isinstance(request.getfixturevalue(fixture), Satellite): | ||
sat = request.getfixturevalue(fixture) | ||
sat.record_property = record_property |