Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a developer, attempts to should be logged as Trace, so that the Screenplay log can be easily filtered. #257

Open
2 tasks done
Pressacco opened this issue Mar 15, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Pressacco
Copy link
Contributor

Pressacco commented Mar 15, 2023

Description

Intent

Extract a test summary, by filtering the Screenplay log by severity.

This could be accomplished by logging the following as Trace:

  • attempts to
  • asks for

Alternatives

  1. Could create a separate log file at run-time, but why bother?

Anything else?

Expected

The log file after Trace messages has been filtered out:

Adding Ability for Screenplay Actor 'Andy' to browse the Web with OpenQA.Selenium.Chrome.ChromeDriver
Screenplay Actor 'Andy' successfully did navigate browser to 'https://www.duckduckgo.com/'
Screenplay Actor 'Andy' observed that the wait until existence of 'DuckDuckGo Search Input' is equal to 'True' for up to 30s was True
Screenplay Actor 'Andy' observed that the HTML attribute of 'value' for 'DuckDuckGo Search Input' was 
Screenplay Actor 'Andy' observed that the wait until appearance of 'DuckDuckGo Search Input' is equal to 'True' for up to 30s was True
Screenplay Actor 'Andy' successfully did clear using backspaces, then send keys 'panda' to DuckDuckGo Search Input
Screenplay Actor 'Andy' observed that the wait until appearance of 'DuckDuckGo Search Button' is equal to 'True' for up to 30s was True
Screenplay Actor 'Andy' successfully did click on 'DuckDuckGo Search Button'
Screenplay Actor 'Andy' successfully did Boa.Constrictor.Example.SearchDuckDuckGo
Screenplay Actor 'Andy' observed that the wait until appearance of 'DuckDuckGo Result Page Links' is equal to 'True' for up to 30s was True
Screenplay Actor 'Andy' successfully did quit the WebDriver

Actual

The current Screenplay log file:

Screenplay Actor 'Andy' attempts to navigate browser to 'https://www.duckduckgo.com/'
Screenplay Actor 'Andy' successfully did navigate browser to 'https://www.duckduckgo.com/'
Screenplay Actor 'Andy' asking for HTML attribute of 'value' for 'DuckDuckGo Search Input'
Screenplay Actor 'Andy' asks for wait until existence of 'DuckDuckGo Search Input' is equal to 'True'
Screenplay Actor 'Andy' observed that the wait until existence of 'DuckDuckGo Search Input' is equal to 'True' for up to 30s was True
Screenplay Actor 'Andy' observed that the HTML attribute of 'value' for 'DuckDuckGo Search Input' was 
Screenplay Actor 'Andy' attempts to Boa.Constrictor.Example.SearchDuckDuckGo
Screenplay Actor 'Andy' attempts to clear using backspaces, then send keys 'panda' to DuckDuckGo Search Input
Screenplay Actor 'Andy' asks for wait until appearance of 'DuckDuckGo Search Input' is equal to 'True'
Screenplay Actor 'Andy' observed that the wait until appearance of 'DuckDuckGo Search Input' is equal to 'True' for up to 30s was True
Screenplay Actor 'Andy' successfully did clear using backspaces, then send keys 'panda' to DuckDuckGo Search Input
Screenplay Actor 'Andy' attempts to click on 'DuckDuckGo Search Button'
Screenplay Actor 'Andy' asks for wait until appearance of 'DuckDuckGo Search Button' is equal to 'True'
Screenplay Actor 'Andy' observed that the wait until appearance of 'DuckDuckGo Search Button' is equal to 'True' for up to 30s was True
Screenplay Actor 'Andy' successfully did click on 'DuckDuckGo Search Button'
Screenplay Actor 'Andy' successfully did Boa.Constrictor.Example.SearchDuckDuckGo
Screenplay Actor 'Andy' asks for wait until appearance of 'DuckDuckGo Result Page Links' is equal to 'True'
Screenplay Actor 'Andy' observed that the wait until appearance of 'DuckDuckGo Result Page Links' is equal to 'True' for up to 30s was True
Screenplay Actor 'Andy' attempts to quit the WebDriver
Screenplay Actor 'Andy' successfully did quit the WebDriver

Commitments

  • I agree to follow Boa Constrictor's Code of Conduct.
  • I want to work on this issue myself. (This is voluntary, not required.)
@Pressacco Pressacco added the enhancement New feature or request label Mar 15, 2023
Pressacco added a commit to Pressacco/boa-constrictor that referenced this issue Mar 15, 2023
Pressacco added a commit to Pressacco/boa-constrictor that referenced this issue Mar 15, 2023
@Pressacco
Copy link
Contributor Author

The proposed change, and subsequent unit tests, are related to:

Pressacco added a commit to Pressacco/boa-constrictor that referenced this issue Mar 15, 2023
@AutomationPanda
Copy link
Contributor

This is a really good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants