testomatio / pytestomatio

Pytest plugin to analyze tests and link them automatically with Testomat.io test case management system
MIT License
9 stars 4 forks source link

Steps for automation tests #12

Open vadimkop opened 5 months ago

vadimkop commented 5 months ago

Hello. Could you add decorators to the automation test steps for Python?

For example from Qase: with qase.step("Step 1. Switch to Seat", "Seat selected"): search.select_seat()

Ypurek commented 5 months ago

I can add them in form of a decorator and even context manager, but they would not be set automatically

Ypurek commented 5 months ago

Will add this request to the development plan

vadimkop commented 5 months ago

Could I know about estimate time?

vadimkop commented 5 months ago

I would also like to clarify about the lack of automatic adding - what does this mean? If I write steps in the test code, will I still have to add them manually to the TMS for this test? And when changing steps in the code, they will not be updated in TMS?

Ypurek commented 5 months ago

When you run the command pytest --testomatio sync the info about test will be send to the testomatio. But without steps. There is even no API to sync test steps. So yes, you have to update them manually both in the code and on the TMS.

During the reporting pytest --testomatio report there is an API to transfer test steps (never used it before, not sure how does it work)

The most probably will have time during June to implement this

vadimkop commented 5 months ago

Thanks for response