mardi 29 août 2017

Using PyTest with a GUI in a Q&A fashion

Originally, I had a set of batch scripts which would change some files, open the gui, the user would confirm the effects of the change visually and then close the GUI. The test code could would then make changes and reopen the GUI for re inspection.

Is there a method to use PyTest in a similar way?

So the test function would make the changes, open the gui, ask the user if the changes are correct, if so the user would say yes and the test would pass. Otherwise it would fail and then move onto the next test.

Aucun commentaire:

Enregistrer un commentaire