Is there a way to explicitly set an initiator name in source?
For context, I am using httpdbg in pytest and would like to have separate initiator groups for fixtures and items (tests) that make requests.
Currently, it seems that all requests made in setup/call/teardown phases are grouped under a single initiator for the item.
The httpdbg output for the code above would show requests like so:
test_a
GET .../some/url
POST .../some/second/url
test_b
POST .../some/third/url
Note that requests made in the loaded_stuff fixture are grouped under the test_a initiator, while the test_b initiator omits requests made in loaded_stuff due to its scope.
Ideally I would have the requests made in loaded_stuff under its own initiator - so is there a way I can set the initiator explicitly when inside a fixture?
Hello,
Is there a way to explicitly set an initiator name in source?
For context, I am using
httpdbg
inpytest
and would like to have separate initiator groups forfixtures
anditems
(tests) that make requests. Currently, it seems that all requests made in setup/call/teardown phases are grouped under a single initiator for theitem
.Example
The httpdbg output for the code above would show requests like so:
test_a
GET .../some/url
POST .../some/second/url
test_b
POST .../some/third/url
Note that requests made in the
loaded_stuff
fixture are grouped under thetest_a
initiator, while thetest_b
initiator omits requests made inloaded_stuff
due to its scope.Ideally I would have the requests made in
loaded_stuff
under its own initiator - so is there a way I can set the initiator explicitly when inside a fixture?