[pytest-dev] Manually running test steps/getting user input

Anatoly Bubenkov bubenkoff at gmail.com
Sat May 16 16:50:20 EDT 2020

take a look at pytest-bdd https://github.com/pytest-dev/pytest-bdd
And if you need to implement some kind of manual pause between the steps,
this should be pretty straightforward to implement via its hooks.

On Fri, May 15, 2020 at 4:04 PM Brianna Laugher <brianna.laugher at gmail.com>

> I work in an environment where there is a lot of manual text execution
> (blame hardware).
> Moving people to ATDD/BDD style tests (such as Gherkin) is a first step.
> The good thing about tests written in this style is it works for both
> automated and manual execution.
> We are looking at adopting such a framework to start with some system
> level testing for embedded software. Robot Framework is well known and
> solid in this space. One of my colleagues pointed out that RF even has a
> capability to prompt the user for input or to record a step as pass/fail.
> https://robotframework.org/robotframework/latest/libraries/Dialogs.html
> (I've just tried it out and it is an extremely basic Tk dialog that pops
> up from the command line on Windows, but it is kinda nifty.) I am loath to
> discover that RF has a feature pytest does not...
> This is kind of a neat tool to have on a path towards automation. Of
> course the steps run all the time need to be automated, but there are
> plenty of others that could stay manual, being able to do this is an
> interesting hybrid. (Obviously these are not the kind of tests you run in
> CI!)
> So has anyone heard of a plugin like that for pytest?
> The RF code looks like it might not take that much porting, tbh...
> https://github.com/robotframework/robotframework/blob/master/src/robot/libraries/Dialogs.py
> Any thoughts about this as an idea, somewhere between awesome and cursed?
> :)
> cheers
> Brianna
> --
> They've just been waiting in a mountain for the right moment:
> http://modernthings.org/
> _______________________________________________
> pytest-dev mailing list
> pytest-dev at python.org
> https://mail.python.org/mailman/listinfo/pytest-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20200516/19d36a1c/attachment.html>

More information about the pytest-dev mailing list