boa-constrictor
boa-constrictor copied to clipboard
Questions written to the `Actor` log do not include the `Actor` prefix.
Background
- The Screenplay
Actor
generates a nice "plain English" log file which can be reviewed post-test run.
Actual Behavior
The following is missing when the response to a question is logged:
- The actor's name.
- Context.
2023-03-09 20:47:07Z [INFO] Adding Ability for 'Dr. Watson' to build widgets.
2023-03-09 20:47:07Z [INFO] 'Dr. Watson' attempts to focus on WidgetApp.exe
2023-03-09 20:47:10Z [INFO] 'Dr. Watson' asking for 'CreateButton' is enabled
2023-03-09 20:47:10Z [INFO] 'CreateButton' is enabled was True
Expected behavior
For consistency, all log entries should be prefixed with:
- The actor's name (e.g.
'Dr. Watson'
). - Context (e.g.
observed that the
).
2023-03-09 20:47:07Z [INFO] Adding Ability for 'Dr. Watson' to build widgets.
2023-03-09 20:47:07Z [INFO] 'Dr. Watson' attempts to focus on WidgetApp.exe
2023-03-09 20:47:10Z [INFO] 'Dr. Watson' asking for 'CreateButton' is enabled
2023-03-09 20:47:10Z [INFO] 'Dr. Watson' observed that the 'CreateButton' is enabled was True
Steps to reproduce
None at this time.
Boa Constrictor version
3.0.3
Browsers
No response
Operating systems
Windows
Anything else?
On Discord AutomationPanda suggested that I create a Pull Request.
Commitments
- [X] I agree to follow Boa Constrictor's Code of Conduct.
- [X] I want to work on this issue myself. (This is voluntary, not required.)
Like #257 , this is a really good idea.