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

chore: added log for null hierarchy #2217

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

proksh
Copy link
Contributor

@proksh proksh commented Dec 24, 2024

When there is null hierarchy,
val error = mapper.readValue(responseBodyAsString, Error::class.java)
fails, and we don't get the status code and error message. Added a warn log before it so that we can know the status code and error message.

@amanjeetsingh150
Copy link
Collaborator

Let's also add logs on ViewHierarchyHandler and update driver.

Copy link

Make sure to run ./maestro-ios-xctest-runner/build-maestro-ios-runner.sh with every swift change

@@ -118,11 +122,17 @@ struct ViewHierarchyHandler: HTTPHandler {
}

let alerts = logger.measure(message: "Fetch alert hierarchy") {
fullScreenAlertHierarchy(element)
fullScreenAlertHierarchy(element) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this call taking a function argument? I don't think this will compile can you try executing:

sh maestro-ios-xctest-runner/build-maestro-ios-runner.sh

Let's actually add a log on line 40 and 42 before we return because in case the endpoint returns error we would have the logs.

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

Successfully merging this pull request may close these issues.

2 participants